Redis.renamenx

Rename oldkey into newkey but fails if the destination key newkey already exists. <p> Time complexity: O(1) @param oldkey @param newkey @return Integer reply, specifically: 1 if the key was renamed 0 if the target key already exist

class Redis
Long
renamenx
(
string oldkey
,
string newkey
)

Meta