Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Get ¶
Get returns the string value of a key. GET key https://redis.io/commands/get
type GetSet ¶
Returns the previous string value of a key after setting it to a new value. GETSET key value https://redis.io/commands/getset
type Incr ¶
Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist. INCR key https://redis.io/commands/incr
Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist. DECR key https://redis.io/commands/decr
type IncrBy ¶
Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist. INCRBY key increment https://redis.io/commands/incrby
Decrements the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist. DECRBY key increment https://redis.io/commands/decrby
type IncrByFloat ¶
Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist. INCRBYFLOAT key increment https://redis.io/commands/incrbyfloat
func ParseIncrByFloat ¶
func ParseIncrByFloat(b redis.BaseCmd) (IncrByFloat, error)
type MGet ¶
Atomically returns the string values of one or more keys. MGET key [key ...] https://redis.io/commands/mget
type MSet ¶
Atomically creates or modifies the string values of one or more keys. MSET key value [key value ...] https://redis.io/commands/mset
type Set ¶
Set sets the string value of a key. The key is created if it doesn't exist. SET key value [NX | XX] [GET] [EX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | KEEPTTL] https://redis.io/commands/set
type SetEX ¶
Sets the string value and expiration time of a key. Creates the key if it doesn't exist. SETEX key seconds value https://redis.io/commands/setex
type SetNX ¶
Set the string value of a key only when the key doesn't exist. SETNX key value https://redis.io/commands/setnx
type Strlen ¶
Strlen returns the length of a string value. STRLEN key https://redis.io/commands/strlen