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

Database.Redis.Hash

Synopsis

Documentation

hashSetSource

Arguments

:: Handle 
-> String

key

-> String

field

-> String

value

-> IO (Maybe RedisReply) 

Calls HSET with String arguments

hashSetBSource

Arguments

:: Handle 
-> ByteString

key

-> ByteString

field

-> ByteString

value

-> IO (Maybe RedisReply) 

Calls HSET with ByteString arguments

hashGetSource

Arguments

:: Handle 
-> String

key

-> String

field

-> IO (Maybe RedisReply) 

Calls HGET with ByteString arguments

hashGetBSource

Arguments

:: Handle 
-> ByteString

key

-> ByteString

field

-> IO (Maybe RedisReply) 

Calls HGET with ByteString arguments

hashMultiGetSource

Arguments

:: Handle 
-> String

key

-> [String]

fields

-> IO (Maybe RedisReply) 

hashMultiSetSource

Arguments

:: Handle 
-> String

key

-> [(String, String)]

key/value pairs to set

-> IO (Maybe RedisReply) 

Calls HMSET http://code.google.com/p/redis/wiki/HmsetCommand with a list of tuples (key, value)

hashIncrementBySource

Arguments

:: Handle 
-> String

key

-> String

field

-> Int

field

-> IO (Maybe RedisReply) 

Calls HINCRBY with String and Int arguments

hashExistsSource

Arguments

:: Handle 
-> String

key

-> String

field

-> IO (Maybe RedisReply) 

hashKeysSource

Arguments

:: Handle 
-> String

key

-> IO (Maybe RedisReply) 

Calls HKEYS (http://code.google.com/p/redis/wiki/HkeysCommand) with a String argument. N.B. despite its name, it returns fields.