Class RenameNxCommandKt
-
- All Implemented Interfaces:
public final class RenameNxCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestrenamenxCommand(String key, String newKey, Function1<Boolean, Unit> onResult)Renames key to newKey only if newKey does not exist. -
-
Method Detail
-
renamenxCommand
final static RedisRequest renamenxCommand(String key, String newKey, Function1<Boolean, Unit> onResult)
Renames key to newKey only if newKey does not exist. Fails if key does not exist.
- Parameters:
onResult-true if key was renamed, false if newKey already exists
-
-
-
-