vibe.d beta banner
get vibe.d
0.10.0

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

RedisDatabase.setNX - multiple declarations

Function RedisDatabase.setNX

Set the value of a key, only if the key does not exist

bool setNX(T) (
  string key,
  T value
)
if (isValidRedisValueType!T);

Function RedisDatabase.setNX

Set the value of a key, only if the key does not exist, and also set the specified expire time using D notation, e.g. 5.minutes for 5 minutes.

bool setNX(T) (
  string key,
  T value,
  Duration expire_time
)
if (isValidRedisValueType!T);
Authors

Jan Krüger, Sönke Ludwig, Michael Eisendle, Etienne Cimon

Copyright

© 2012-2016 Sönke Ludwig

License

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