| Safe Haskell | None |
|---|---|
| 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
| MonadIO Redis Source # | |
| Applicative Redis Source # | |
| Functor Redis Source # | |
| Monad Redis Source # | |
| MonadFail Redis Source # | |
| MonadRedis Redis Source # | |
| MonadUnliftIO Redis Source # | |
Defined in Database.Redis.Core.Internal Methods withRunInIO :: ((forall a. Redis a -> IO a) -> IO b) -> Redis b | |
| 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
| |