redis and generic | Mar 9, 2016
Create a key associated with a value that is obtained by deserializing the
provided serialized value (obtained via DUMP
).
redis and generic | Mar 9, 2016
Renames key
to newkey
if newkey
does not yet exist.
It returns an error under the same conditions as RENAME
.
redis and generic | Mar 9, 2016
Renames key
to newkey
.
It returns an error when the source and destination names are the same, or when
key
does not exist.
If newkey
already exists it is overwritten, when this happens RENAME
executes an implicit DEL
operation, so if the deleted key contains a very big value it may cause high latency even if RENAME
itself is usually a constant-time operation.
redis and generic | Mar 9, 2016
Return a random key from the currently selected database.
More »redis and generic | Mar 9, 2016
Like TTL
this command returns the remaining time to live of a key that has an
expire set, with the sole difference that TTL
returns the amount of remaining
time in seconds while PTTL
returns it in milliseconds.
redis and generic | Mar 9, 2016
PEXPIREAT
has the same effect and semantic as EXPIREAT
, but the Unix time at
which the key will expire is specified in milliseconds instead of seconds.