Database.Redis.General
- keyExists :: Handle -> String -> IO (Maybe RedisReply)
- keyExistsB :: Handle -> ByteString -> IO (Maybe RedisReply)
- keyDelete :: Handle -> [String] -> IO (Maybe RedisReply)
- keyDeleteB :: Handle -> [ByteString] -> IO (Maybe RedisReply)
- keyType :: Handle -> String -> IO (Maybe RedisReply)
- keyTypeB :: Handle -> ByteString -> IO (Maybe RedisReply)
- keys :: Handle -> String -> IO (Maybe RedisReply)
- keysB :: Handle -> ByteString -> IO (Maybe RedisReply)
- keyRandom :: Handle -> IO (Maybe RedisReply)
- keyRename :: Handle -> String -> String -> IO (Maybe RedisReply)
- keyRenameNX :: Handle -> String -> String -> IO (Maybe RedisReply)
- databaseSize :: Handle -> IO (Maybe RedisReply)
- keyTimeToLive :: Handle -> String -> IO (Maybe RedisReply)
- keyExpire :: Handle -> String -> Int -> IO (Maybe RedisReply)
- keyExpireAt :: Handle -> String -> Int -> IO (Maybe RedisReply)
- keyPersist :: Handle -> String -> IO (Maybe RedisReply)
- keyMove :: Handle -> String -> Int -> IO (Maybe RedisReply)
- flushDB :: Handle -> IO (Maybe RedisReply)
- flushAll :: Handle -> IO (Maybe RedisReply)
- select :: Handle -> Int -> IO (Maybe RedisReply)
- ping :: Handle -> IO (Maybe RedisReply)
- unwrapReply :: Maybe RedisReply -> [String]
Documentation
Arguments
| :: Handle | |
| -> String | key |
| -> IO (Maybe RedisReply) |
Calls EXISTS (http://code.google.com/p/redis/wiki/ExistsCommand)
with a String argument
Arguments
| :: Handle | |
| -> ByteString | key |
| -> IO (Maybe RedisReply) |
Calls EXISTS with a ByteString argument
Arguments
| :: Handle | |
| -> [String] | keys to delete |
| -> IO (Maybe RedisReply) |
Calls DEL (http://code.google.com/p/redis/wiki/DelCommand) with a
list of String arguments.
Arguments
| :: Handle | |
| -> [ByteString] | keys to delete |
| -> IO (Maybe RedisReply) |
Calls DEL with a list of ByteString arguments.
Arguments
| :: Handle | |
| -> String | key |
| -> IO (Maybe RedisReply) |
Calls TYPE (http://code.google.com/p/redis/wiki/TypeCommand) with a
String argument.
Arguments
| :: Handle | |
| -> ByteString | key |
| -> IO (Maybe RedisReply) |
Calls TYPE (http://code.google.com/p/redis/wiki/TypeCommand) with a
ByteString argument.
Arguments
| :: Handle | |
| -> String | key pattern |
| -> IO (Maybe RedisReply) |
Calls KEYS (http://code.google.com/p/redis/wiki/KeysCommand) with a
String argument
Arguments
| :: Handle | |
| -> ByteString | key pattern |
| -> IO (Maybe RedisReply) |
Calls KEYS with a ByteString argument
keyRandom :: Handle -> IO (Maybe RedisReply)Source
Calls RANDOMKEY (http://code.google.com/p/redis/wiki/RandomkeyCommand)
Calls RENAME (http://code.google.com/p/redis/wiki/RenameCommand) with
String arguments.
Calls RENAMENX (http://code.google.com/p/redis/wiki/RenamenxCommand)
with String arguments.
databaseSize :: Handle -> IO (Maybe RedisReply)Source
DBSIZE
Arguments
| :: Handle | |
| -> String | key |
| -> IO (Maybe RedisReply) |
EXPIRE
EXPIREAT
Arguments
| :: Handle | |
| -> Int | the database to switch to |
| -> IO (Maybe RedisReply) |
Calls SELECT (http://code.google.com/p/redis/wiki/SelectCommand)
with an Int argument
unwrapReply :: Maybe RedisReply -> [String]Source
Placeholder for a better-designed function