Documentation
¶
Index ¶
Constants ¶
const ( TypeHash = "hash" TypeList = "list" TypeSet = "set" TypeString = "string" TypeZSet = "zset" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Del ¶
Deletes one or more Keys. DEL key [key ...] https://redis.io/commands/del
type Exists ¶
Determines whether one or more keys exist. EXISTS key [key ...] https://redis.io/commands/exists
type Expire ¶
Sets the expiration time of a key in seconds. EXPIRE key seconds https://redis.io/commands/expire
type ExpireAt ¶
Sets the expiration time of a key to a Unix timestamp. EXPIREAT key unix-time-seconds https://redis.io/commands/expireat
type FlushDB ¶
Remove all keys from the current database. FLUSHDB https://redis.io/commands/flushdb
type Keys ¶
Returns all key names that match a pattern. KEYS pattern https://redis.io/commands/keys
type Persist ¶
Removes the expiration time of a key. PERSIST key https://redis.io/commands/persist
type RandomKey ¶
Returns a random key name from the database. RANDOMKEY https://redis.io/commands/randomkey
type Rename ¶
Renames a key and overwrites the destination. RENAME key newkey https://redis.io/commands/rename
type RenameNX ¶
Renames a key only when the target key name doesn't exist. RENAMENX key newkey https://redis.io/commands/renamenx
type Scan ¶
Iterates over the key names in the database. SCAN cursor [MATCH pattern] [COUNT count] https://redis.io/commands/scan
type TTL ¶
Returns the expiration time in seconds of a key. TTL key https://redis.io/commands/ttl
type Type ¶
Determines the type of value stored at a key. TYPE key https://redis.io/commands/type