redis-hs-0.1.1: A simple Redis library for Haskell

Database.Redis.General

Synopsis

Documentation

keyExistsBSource

Arguments

:: Handle 
-> ByteString

key

-> IO (Maybe RedisReply) 

Calls EXISTS with a ByteString argument

keyDeleteSource

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.

keyDeleteBSource

Arguments

:: Handle 
-> [ByteString]

keys to delete

-> IO (Maybe RedisReply) 

Calls DEL with a list of ByteString arguments.

keysSource

Arguments

:: Handle 
-> String

key pattern

-> IO (Maybe RedisReply) 

keysBSource

Arguments

:: Handle 
-> ByteString

key pattern

-> IO (Maybe RedisReply) 

Calls KEYS with a ByteString argument

keyRenameSource

Arguments

:: Handle 
-> String

old key name

-> String

new key name

-> IO (Maybe RedisReply) 

keyRenameNXSource

Arguments

:: Handle 
-> String

old key name

-> String

new key name

-> IO (Maybe RedisReply) 

keyExpireSource

Arguments

:: Handle 
-> String

key

-> Int

number of seconds intil expiry

-> IO (Maybe RedisReply) 

EXPIRE

keyExpireAtSource

Arguments

:: Handle 
-> String

key

-> Int

unix time of expiry

-> IO (Maybe RedisReply) 

EXPIREAT

keyPersistSource

Arguments

:: Handle 
-> String

key

-> IO (Maybe RedisReply) 

PERSIST

keyMoveSource

Arguments

:: Handle 
-> String

key

-> Int

the database to switch to

-> IO (Maybe RedisReply) 

selectSource

Arguments

:: Handle 
-> Int

the database to switch to

-> IO (Maybe RedisReply) 

ping :: Handle -> IO (Maybe RedisReply)Source

The PING command should return PONG

unwrapReply :: Maybe RedisReply -> [String]Source

Placeholder for a better-designed function