RENAME

Synopsis

RENAME key1 key2

Limited support: RENAME command is useful to rename one key as another key. This is currently a best-effort mechanism and is intended to only work when there is no concurrent updates to either the source or the destination keys. The TTL setting for the key itself is copied over to the destination key. However, for container types such as the TimeSeries type, the ttl settings for the sub-keys are not copied.

Return value

Returns status string.

See also

set, get, hset, hget,