Struct RedisValue
Represents a generic Redis value.
Constructors
Name | Description |
this
(db, key)
|
|
Properties
Name | Type | Description |
database [get]
|
inout(RedisDatabase) | The database in which the key is stored.
|
exists [get]
|
bool | Checks if the referenced key exists.
|
key [get]
|
string | Name of the corresponding key.
|
ttl [get]
|
core.time.Duration | Remaining time-to-live.
|
type [get]
|
RedisType | The data type of the referenced value.
|
Methods
Name | Description |
expire
(expire_time)
|
Sets the key for expiration after the given timeout.
|
expireAt
(expire_time)
|
Sets the key for expiration at the given point in time.
|
moveTo
(dst_database)
|
Moves this key to a different database.
|
persist
()
|
Removes any existing expiration time for the key.
|
remove
()
|
Removes the referenced key.
|
rename
(new_name)
|
Renames the referenced key.
|
renameIfNotExist
(new_name)
|
Renames the referenced key if the destination key doesn't exist.
|