vibe.d beta banner
get vibe.d
0.9.0

Asynchronous I/O that doesn’t get in your way, written in D

Struct RedisValue

Represents a generic Redis value.

struct RedisValue ;

Constructors

NameDescription
this (db, key)

Properties

NameTypeDescription
database[get] inout(RedisDatabase)The database in which the key is stored.
exists[get] boolChecks if the referenced key exists.
key[get] stringName of the corresponding key.
ttl[get] core.time.DurationRemaining time-to-live.
type[get] RedisTypeThe data type of the referenced value.

Methods

NameDescription
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.
Authors

Sönke Ludwig

Copyright

© 2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.