vibe.d beta banner
get vibe.d
0.7.30

RedisDatabase.setNX - multiple declarations

  • Function RedisDatabase.setNX
  • Function RedisDatabase.setNX

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.

Prototype

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

Function RedisDatabase.setNX

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

Prototype

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

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

Copyright

© 2012-2016 RejectedSoftware e.K.

License

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