Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Database.Redis.Core.Internal
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
MonadFail Redis Source # | |
Defined in Database.Redis.Core.Internal | |
MonadIO Redis Source # | |
Defined in Database.Redis.Core.Internal | |
Applicative Redis Source # | |
Functor Redis Source # | |
Monad Redis Source # | |
MonadRedis Redis Source # | |
MonadUnliftIO Redis Source # | |
Defined in Database.Redis.Core.Internal | |
RedisCtx Redis (Either Reply) Source # | |
Defined in Database.Redis.Core Methods returnDecode :: RedisResult a => Reply -> Redis (Either Reply a) Source # |
Constructors
NonClusteredEnv | |
Fields
| |
ClusteredEnv | |
Fields
|