Copyright | (c) 2019 Daniel YU |
---|---|
License | BSD3 |
Maintainer | leptonyu@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Yam.Redis
Contents
Description
Redis supports for yam.
Synopsis
- data RedisConfig = RedisConfig {
- url :: String
- maxConnections :: Word16
- type HasRedis cxt = (HasLogger cxt, HasContextEntry cxt REDIS)
- redisMiddleware :: RedisConfig -> AppMiddleware a (REDIS ': a)
- ttlOpts :: Integer -> SetOpts
- runR :: (MonadIO m, HasRedis cxt) => AppT cxt Redis (Either Reply a) -> AppT cxt m a
- data REDIS
Documentation
data RedisConfig Source #
Constructors
RedisConfig | |
Fields
|
Instances
Eq RedisConfig Source # | |
Defined in Yam.Redis | |
Show RedisConfig Source # | |
Defined in Yam.Redis Methods showsPrec :: Int -> RedisConfig -> ShowS # show :: RedisConfig -> String # showList :: [RedisConfig] -> ShowS # | |
Default RedisConfig Source # | |
Defined in Yam.Redis Methods def :: RedisConfig # | |
FromProp RedisConfig Source # | |
Defined in Yam.Redis Methods fromProp :: Prop RedisConfig # |
redisMiddleware :: RedisConfig -> AppMiddleware a (REDIS ': a) Source #
Orphan instances
(HasRedis cxt, MonadIO m) => MonadRedis (AppT cxt m) Source # | |
HasRedis cxt => RedisCtx (AppT cxt RedisTx) Queued Source # | |
Methods returnDecode :: RedisResult a => Reply -> AppT cxt RedisTx (Queued a) # | |
HasRedis cxt => RedisCtx (AppT cxt Redis) (Either Reply) Source # | |
Methods returnDecode :: RedisResult a => Reply -> AppT cxt Redis (Either Reply a) # |