RedisValue.renameIfNotExist

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

This method will also update this instance to refer to the renamed key if the rename was successful.

struct RedisValue
bool
renameIfNotExist
(
string new_name
)

Return Value

Type: bool

true iff the source key exists and the destination key doesn't exist.

See Also

Meta