API ReferenceKeys
Rename
Rename a key
Syntax
Redix.Rename(oldKey, newKey)Parameters
Prop
Type
Returns
Prop
Type
Example
local result = Redix.Rename('player:temp:123', 'player:123')
if result then
print('Key renamed successfully')
endIf the new key already exists, it will be overwritten. The old key must exist or an error will occur.