| Copyright | (c) 2018-2022 Tim Emiola |
|---|---|
| License | BSD3 |
| Maintainer | Tim Emiola <tim@emio.la> |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
KeyedVals.Handle.Redis
Contents
Description
Implements a Handle that uses Redis as a persistent data store.
Synopsis
- new :: MonadUnliftIO m => m (Handle m)
- module KeyedVals.Handle
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
module KeyedVals.Handle