Safe Haskell | None |
---|
- newtype RedisAuth = RedisAuth Text
- data RedisConf = RedisConf {}
- class MonadRedis m => RedisCtx m f | m -> f
- data Redis a
- data Connection
- data PortID
- newtype RedisT m a = RedisT {
- runRedisT :: ReaderT Connection m a
- runRedisPool :: RedisT m a -> Connection -> m a
- withRedisConn :: (Monad m, MonadIO m) => RedisConf -> (Connection -> m a) -> m a
- thisConnection :: Monad m => RedisT m Connection
- module Database.Persist
- data RedisBackend
- execRedisT :: (Monad m, MonadIO m) => RedisTx (Queued a) -> RedisT m a
Documentation
Information required to connect to a Redis server
class MonadRedis m => RedisCtx m f | m -> f
This class captures the following behaviour: In a context m
, a command
will return it's result wrapped in a "container" of type f
.
Please refer to the Command Type Signatures section of this page for more information.
data Redis a
data Connection
A threadsafe pool of network connections to a Redis server. Use the
connect
function to create one.
data PortID
Monad reader transformer keeping Redis connection through out the work
RedisT | |
|
MonadTrans RedisT | |
Monad m => Monad (RedisT m) | |
Functor m => Functor (RedisT m) | |
MonadPlus m => MonadPlus (RedisT m) | |
Applicative m => Applicative (RedisT m) | |
MonadIO m => MonadIO (RedisT m) | |
(Applicative m, Functor m, MonadIO m, MonadBaseControl IO m) => PersistStore (RedisT m) |
runRedisPool :: RedisT m a -> Connection -> m aSource
withRedisConn :: (Monad m, MonadIO m) => RedisConf -> (Connection -> m a) -> m aSource
Run a connection reader function against a Redis configuration
thisConnection :: Monad m => RedisT m ConnectionSource
Extracts connection from RedisT monad transformer
module Database.Persist
data RedisBackend Source