Class RenameNxCommandKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static RedisRequest renamenxCommand(String key, String newKey, Function1<Boolean, Unit> onResult) Renames key to newKey only if newKey does not exist.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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