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

Database.Redis.String

Description

This module has nothing to do with Haskell Strings; 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.

Synopsis

Documentation

itemSetSource

Arguments

:: Handle 
-> String

key to set

-> String

value to set

-> IO (Maybe RedisReply) 

itemSetBSource

Arguments

:: Handle 
-> ByteString

key to set

-> ByteString

value to set

-> IO (Maybe RedisReply) 

SET for ByteString input

itemSetNXSource

Arguments

:: Handle 
-> String

key to set

-> String

value to set

-> IO (Maybe RedisReply) 

itemSetEXSource

Arguments

:: Handle 
-> String

key to set

-> Int

number of seconds until expiration

-> String

value to set

-> IO (Maybe RedisReply) 

SETEX

itemGetSource

Arguments

:: Handle 
-> String

key of the value to return

-> IO (Maybe RedisReply) 

itemGetBSource

Arguments

:: Handle 
-> ByteString

key of the value to return

-> IO (Maybe RedisReply) 

GET for a ByteString argument

multiSetSource

Arguments

:: Handle 
-> [(String, String)]

key/value pairs to set

-> IO (Maybe RedisReply) 

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

multiGetSource

Arguments

:: Handle 
-> [String]

keys from which to return a value

-> IO (Maybe RedisReply) 

multiSetNXSource

Arguments

:: Handle 
-> [(String, String)]

key/value pairs to set

-> IO (Maybe RedisReply) 

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

incrementSource

Arguments

:: Handle 
-> String

key to increment

-> IO (Maybe RedisReply) 

INCR

incrementBySource

Arguments

:: Handle 
-> String

key to increment

-> Int 
-> IO (Maybe RedisReply) 

INCRBY

decrementSource

Arguments

:: Handle 
-> String

key to decrement

-> IO (Maybe RedisReply) 

DECR

decrementBySource

Arguments

:: Handle 
-> String

key to decrement

-> Int 
-> IO (Maybe RedisReply) 

itemGetSetSource

Arguments

:: Handle 
-> String

key of the value to return

-> String

new value

-> IO (Maybe RedisReply) 

itemAppendSource

Arguments

:: Handle 
-> String

key to append to

-> String

value to append

-> IO (Maybe RedisReply) 

substringSource

Arguments

:: Handle 
-> String

key to append to

-> Int

start position

-> Int

end position

-> IO (Maybe RedisReply) 

SUBSTR