This module has nothing to do with Haskell String
s; the Redis
Command Reference (http://code.google.com/p/redis/wiki/CommandReference)
confusingly refers to its simple key/value pairing as strings, even when
those strings can be incremented. Unfortunately, I can't think of a better
name.
- itemSet :: Handle -> String -> String -> IO (Maybe RedisReply)
- itemSetB :: Handle -> ByteString -> ByteString -> IO (Maybe RedisReply)
- itemSetNX :: Handle -> String -> String -> IO (Maybe RedisReply)
- itemSetEX :: Handle -> String -> Int -> String -> IO (Maybe RedisReply)
- itemGet :: Handle -> String -> IO (Maybe RedisReply)
- itemGetB :: Handle -> ByteString -> IO (Maybe RedisReply)
- multiSet :: Handle -> [(String, String)] -> IO (Maybe RedisReply)
- multiGet :: Handle -> [String] -> IO (Maybe RedisReply)
- multiSetNX :: Handle -> [(String, String)] -> IO (Maybe RedisReply)
- increment :: Handle -> String -> IO (Maybe RedisReply)
- incrementBy :: Handle -> String -> Int -> IO (Maybe RedisReply)
- decrement :: Handle -> String -> IO (Maybe RedisReply)
- decrementBy :: Handle -> String -> Int -> IO (Maybe RedisReply)
- itemGetSet :: Handle -> String -> String -> IO (Maybe RedisReply)
- itemAppend :: Handle -> String -> String -> IO (Maybe RedisReply)
- substring :: Handle -> String -> Int -> Int -> IO (Maybe RedisReply)
Documentation
SET for String
arguments
http://code.google.com/p/redis/wiki/SetCommand
:: Handle | |
-> ByteString | key to set |
-> ByteString | value to set |
-> IO (Maybe RedisReply) |
SET for ByteString input
SETNX for String
arguments
http://code.google.com/p/redis/wiki/SetnxCommand
:: Handle | |
-> String | key to set |
-> Int | number of seconds until expiration |
-> String | value to set |
-> IO (Maybe RedisReply) |
SETEX
:: Handle | |
-> String | key of the value to return |
-> IO (Maybe RedisReply) |
GET for a String
argument
http://code.google.com/p/redis/wiki/GetCommand
:: Handle | |
-> ByteString | key of the value to return |
-> IO (Maybe RedisReply) |
GET for a ByteString
argument
Calls MSET
http://code.google.com/p/redis/wiki/MsetCommand with a
list of tuples (key, value)
Calls MSETNX
(http://code.google.com/p/redis/wiki/MsetnxCommand) with
a list of tuples (key, value)
GETSET for String
arguments
http://code.google.com/p/redis/wiki/GetsetCommand
APPEND for String
arguments
http://code.google.com/p/redis/wiki/AppendCommand