Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Redis a = Redis (ReaderT RedisEnv IO a)
- data RedisEnv
- = NonClusteredEnv {
- envConn :: Connection
- envLastReply :: IORef Reply
- | ClusteredEnv {
- refreshAction :: IO ShardMap
- connection :: Connection
- = NonClusteredEnv {
Documentation
Context for normal command execution, outside of transactions. Use
runRedis
to run actions of this type.
In this context, each result is wrapped in an Either
to account for the
possibility of Redis returning an Error
reply.
Instances
Monad Redis Source # | |
Functor Redis Source # | |
MonadFail Redis Source # | |
Defined in Database.Redis.Core.Internal | |
Applicative Redis Source # | |
MonadIO Redis Source # | |
Defined in Database.Redis.Core.Internal | |
MonadRedis Redis Source # | |
RedisCtx Redis (Either Reply) Source # | |
Defined in Database.Redis.Core returnDecode :: RedisResult a => Reply -> Redis (Either Reply a) Source # |
NonClusteredEnv | |
| |
ClusteredEnv | |
|