Documentation
¶
Index ¶
Constants ¶
const ( Before = "before" After = "after" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LIndex ¶
Returns an element from a list by its index. LINDEX key index https://redis.io/commands/lindex
type LInsert ¶
Inserts an element before or after another element in a list. LINSERT key <BEFORE | AFTER> pivot element https://redis.io/commands/linsert
type LLen ¶
Returns the length of a list. LLEN key https://redis.io/commands/llen
type LPop ¶
Returns the first element of a list after removing it. LPOP key https://redis.io/commands/lpop
type LPush ¶
Prepends an element to a list. Creates the key if it doesn't exist. LPUSH key element https://redis.io/commands/lpush
type LRange ¶
Returns a range of elements from a list. LRANGE key start stop https://redis.io/commands/lrange
type LRem ¶
Removes elements from a list. LREM key count element https://redis.io/commands/lrem
type LSet ¶
Sets the value of an element in a list by its index. LSET key index element https://redis.io/commands/lset
type LTrim ¶
Removes elements from both ends a list. LTRIM key start stop https://redis.io/commands/ltrim
type RPop ¶
Returns the last element of a list after removing it. RPOP key https://redis.io/commands/rpop
type RPopLPush ¶
Returns the last element of a list after removing and pushing it to another list. RPOPLPUSH source destination https://redis.io/commands/rpoplpush
type RPush ¶
Appends an element to a list. Creates the key if it doesn't exist. RPUSH key element https://redis.io/commands/rpush