keyed-vals-redis-0.2.0.0: Access Redis using a keyed-vals Handle
Copyright(c) 2018-2022 Tim Emiola
LicenseBSD3
MaintainerTim Emiola <tim@emio.la>
Safe HaskellSafe-Inferred
LanguageHaskell2010

KeyedVals.Handle.Redis

Description

Implements a Handle that uses Redis as a persistent data store.

Synopsis

create a Handle

new :: MonadUnliftIO m => m (Handle m) Source #

Construct a Handle that uses Redis.

The instance is configured using the environment variable REDIS_URL.

If the value of REDIS_URL is invalid or missing, this function throws an IOError.

The Handle uses a pool of connections; the size of the pool can be adjusted by setting the environment variable REDIS_MAX_CONNECTIONS.

module re-exports