vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function RedisValue.renameIfNotExist

Renames the referenced key if the destination key doesn't exist.

bool renameIfNotExist (
  string new_name
);

This method will also update this instance to refer to the renamed key if the rename was successful.

Returns

true iff the source key exists and the destination key doesn't exist.

See also

RENAMENX, rename

Authors

Sönke Ludwig

Copyright

© 2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.