RedisValue

Represents a generic Redis value.

Constructors

this
this(RedisDatabase db, string key)
Undocumented in source.

Members

Functions

expire
bool expire(Duration expire_time)

Sets the key for expiration after the given timeout.

expireAt
bool expireAt(SysTime expire_time)

Sets the key for expiration at the given point in time.

moveTo
bool moveTo(long dst_database)

Moves this key to a different database.

persist
bool persist()

Removes any existing expiration time for the key.

remove
bool remove()

Removes the referenced key.

rename
void rename(string new_name)

Renames the referenced key.

renameIfNotExist
bool renameIfNotExist(string new_name)

Renames the referenced key if the destination key doesn't exist.

Properties

database
inout(RedisDatabase) database [@property getter]

The database in which the key is stored.

exists
bool exists [@property getter]

Checks if the referenced key exists.

key
string key [@property getter]

Name of the corresponding key.

ttl
Duration ttl [@property getter]

Remaining time-to-live.

type
RedisType type [@property getter]

The data type of the referenced value.

Meta