Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic storage is simply a key-value lookup in Redis.
- get :: MonadRedis m => RedisStructure (BASIC w) a b -> a -> m b
- liftq :: RedisStructure (BASIC w) a b -> a ⟿ b
- mget :: MonadRedis m => (a ⟿ b) -> a -> m b
- set :: MonadRedis m => RedisStructure (BASIC w) a b -> a -> b -> m ()
- set' :: MonadRedis m => RedisBasic a (Maybe b) -> a -> b -> m ()
- incr :: MonadRedis m => RedisIntegral a b -> a -> m b
- incrby :: MonadRedis m => RedisIntegral a b -> a -> b -> m b
- decr :: MonadRedis m => RedisIntegral a b -> a -> m b
- decrby :: MonadRedis m => RedisIntegral a b -> a -> b -> m b
Documentation
get :: MonadRedis m => RedisStructure (BASIC w) a b -> a -> m b Source #
Simple get command. Works on RedisBasic a b
and RedisIntegral a b
.
liftq :: RedisStructure (BASIC w) a b -> a ⟿ b Source #
Construct a query to be used with mget
. You may combine many of these together to create complex queries. Use mget
to execute the query back in the Redis monad. Works on RedisBasic a b
and RedisIntegral a b
.
mget :: MonadRedis m => (a ⟿ b) -> a -> m b Source #
Reify a (⟿) query into the Redis monad via a single mget command.
set :: MonadRedis m => RedisStructure (BASIC w) a b -> a -> b -> m () Source #
Set a value for a given key. Works on RedisBasic a b
and RedisIntegral a b
.
set' :: MonadRedis m => RedisBasic a (Maybe b) -> a -> b -> m () Source #
Convenient alias for setting a value for an optional path
incr :: MonadRedis m => RedisIntegral a b -> a -> m b Source #
Increment an Integer in Redis. Empty values are treated as 0.
incrby :: MonadRedis m => RedisIntegral a b -> a -> b -> m b Source #
Increment an Integer in Redis by a specific amount. Empty values are treated as 0.
decr :: MonadRedis m => RedisIntegral a b -> a -> m b Source #
Decrement an Integer in Redis. Empty values are treated as 0.
decrby :: MonadRedis m => RedisIntegral a b -> a -> b -> m b Source #
Decrement an Integer in Redis by a specific amount. Empty values are treated as 0.