Safe Haskell | None |
---|---|
Language | Haskell2010 |
- runRedis :: (RedisApp g, MonadIO m) => Redis a -> WhebT g s m a
- initRedis :: MonadIO m => ConnectInfo -> InitM g s m RedisContainer
- initRedisCache :: MonadIO m => ConnectInfo -> InitM g s m RedisCacheContainer
- class RedisApp a where
- getRedisContainer :: a -> RedisContainer
- class RedisCacheApp a where
- data RedisContainer
- data RedisCacheContainer
Documentation
runRedis :: (RedisApp g, MonadIO m) => Redis a -> WhebT g s m a Source
Run a Redis command inside of WhebT
initRedis :: MonadIO m => ConnectInfo -> InitM g s m RedisContainer Source
Initialize Redis.
initRedisCache :: MonadIO m => ConnectInfo -> InitM g s m RedisCacheContainer Source
Initialize a container for using redis as a cache. You will probably have a different DB and settings for your data and cache so this is broken out.
getRedisContainer :: a -> RedisContainer Source
class RedisCacheApp a where Source
data RedisContainer Source
A container to use as a DB