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

Database.Redis.List

Synopsis

Documentation

listRightPushSource

Arguments

:: Handle 
-> String

key

-> String

value

-> IO (Maybe RedisReply) 

Calls RPUSH with String arguments

listRightPushBSource

Arguments

:: Handle 
-> ByteString

key

-> ByteString

value

-> IO (Maybe RedisReply) 

Calls RPUSH with ByteString arguments

listLeftPushSource

Arguments

:: Handle 
-> String

key

-> String

value

-> IO (Maybe RedisReply) 

Calls LPUSH with String arguments

listLeftPushBSource

Arguments

:: Handle 
-> ByteString

key

-> ByteString

value

-> IO (Maybe RedisReply) 

Calls LPUSH with ByteString arguments

listLengthSource

Arguments

:: Handle 
-> String

key

-> IO (Maybe RedisReply) 

Calls LLEN with a String argument

listLengthBSource

Arguments

:: Handle 
-> ByteString

key

-> IO (Maybe RedisReply) 

Calls LLEN with a ByteString argument

listRangeSource

Arguments

:: Handle 
-> String

key

-> Int

start

-> Int

end

-> IO (Maybe RedisReply) 

Calls LRANGE with a String argument

listRangeBSource

Arguments

:: Handle 
-> ByteString

key

-> Int

start

-> Int

end

-> IO (Maybe RedisReply) 

Calls LRANGE with a ByteString argument

listIndexSource

Arguments

:: Handle 
-> String

key

-> Int

index

-> IO (Maybe RedisReply) 

Calls LINDEX with String and Int arguments

listIndexBSource

Arguments

:: Handle 
-> ByteString

key

-> Int

index

-> IO (Maybe RedisReply) 

Calls LINDEX with ByteString and Int arguments

listRemoveSource

Arguments

:: Handle 
-> String

key

-> Int

the number of items to delete (sign is direction)

-> String

value

-> IO (Maybe RedisReply) 

Calls LREM with String and Int arguments. This command deletes values matching the value parameter. A negative Int argument deletes starting at the tail and moving towards the head (or from right to left, after the push commands). A positive argument deletes from left to right. Zero deletes all the elements. Returns the number of elements deleted (which should match the number) or 0 on failure.