RENAME
This page documents the preview (v2.21) version. Preview includes features under active development and is for development and testing only. For production, use the stable (v2024.1) version.
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 time series type, the ttl settings for the sub-keys are not copied.
Return value
Returns status string.