Database.Redis.List
- listRightPush :: Handle -> String -> String -> IO (Maybe RedisReply)
- listRightPushB :: Handle -> ByteString -> ByteString -> IO (Maybe RedisReply)
- listLeftPush :: Handle -> String -> String -> IO (Maybe RedisReply)
- listLeftPushB :: Handle -> ByteString -> ByteString -> IO (Maybe RedisReply)
- listLength :: Handle -> String -> IO (Maybe RedisReply)
- listLengthB :: Handle -> ByteString -> IO (Maybe RedisReply)
- listRange :: Handle -> String -> Int -> Int -> IO (Maybe RedisReply)
- listRangeB :: Handle -> ByteString -> Int -> Int -> IO (Maybe RedisReply)
- listIndex :: Handle -> String -> Int -> IO (Maybe RedisReply)
- listIndexB :: Handle -> ByteString -> Int -> IO (Maybe RedisReply)
- listRemove :: Handle -> String -> Int -> String -> IO (Maybe RedisReply)
- listRemoveB :: Handle -> ByteString -> Int -> ByteString -> IO (Maybe RedisReply)
- listTrim :: Handle -> String -> Int -> Int -> IO (Maybe RedisReply)
- listSet :: Handle -> String -> Int -> String -> IO (Maybe RedisReply)
- listHeadPop :: Handle -> String -> IO (Maybe RedisReply)
- listTailPop :: Handle -> String -> IO (Maybe RedisReply)
- listBlockHeadPop :: Handle -> String -> IO (Maybe RedisReply)
- listBlockTailPop :: Handle -> String -> IO (Maybe RedisReply)
- listRPopLPush :: Handle -> String -> String -> IO (Maybe RedisReply)
Documentation
Calls RPUSH with String arguments
Arguments
| :: Handle | |
| -> ByteString | key |
| -> ByteString | value |
| -> IO (Maybe RedisReply) |
Calls RPUSH with ByteString arguments
Calls LPUSH with String arguments
Arguments
| :: Handle | |
| -> ByteString | key |
| -> ByteString | value |
| -> IO (Maybe RedisReply) |
Calls LPUSH with ByteString arguments
Arguments
| :: Handle | |
| -> ByteString | key |
| -> IO (Maybe RedisReply) |
Calls LLEN with a ByteString argument
Calls LRANGE with a String argument
Arguments
| :: Handle | |
| -> ByteString | key |
| -> Int | start |
| -> Int | end |
| -> IO (Maybe RedisReply) |
Calls LRANGE with a ByteString argument
Arguments
| :: Handle | |
| -> ByteString | key |
| -> Int | index |
| -> IO (Maybe RedisReply) |
Calls LINDEX with ByteString and Int arguments
Arguments
| :: Handle | |
| -> String | key |
| -> Int | the number of items to delete (sign is direction) |
| -> String | value |
| -> IO (Maybe RedisReply) |
Calls LREM with String and Int arguments. This command deletes
values matching the value parameter. A negative Int argument deletes
starting at the tail and moving towards the head (or from right to left,
after the push commands). A positive argument deletes from left to right.
Zero deletes all the elements. Returns the number of elements deleted
(which should match the number) or 0 on failure.
Arguments
| :: Handle | |
| -> ByteString | key |
| -> Int | the number of items to delete (sign is direction) |
| -> ByteString | value |
| -> IO (Maybe RedisReply) |
Calls LREM with ByteString and Int arguments.
RPOPLPUSH