Copyright | (c) 2019 Daniel YU |
---|---|
License | BSD3 |
Maintainer | leptonyu@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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 #
RedisConfig | |
|
Instances
Eq RedisConfig Source # | |
Defined in Yam.Redis (==) :: RedisConfig -> RedisConfig -> Bool # (/=) :: RedisConfig -> RedisConfig -> Bool # | |
Show RedisConfig Source # | |
Defined in Yam.Redis showsPrec :: Int -> RedisConfig -> ShowS # show :: RedisConfig -> String # showList :: [RedisConfig] -> ShowS # | |
Default RedisConfig Source # | |
Defined in Yam.Redis def :: RedisConfig # | |
FromProp RedisConfig Source # | |
Defined in Yam.Redis 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 # | |
returnDecode :: RedisResult a => Reply -> AppT cxt RedisTx (Queued a) # | |
HasRedis cxt => RedisCtx (AppT cxt Redis) (Either Reply) Source # | |
returnDecode :: RedisResult a => Reply -> AppT cxt Redis (Either Reply a) # |