RedisDatabase.setNX

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

  1. bool setNX(string key, T value)
    struct RedisDatabase
    bool
    setNX
    (
    T
    )
    (
    string key
    ,)
  2. bool setNX(string key, T value, Duration expire_time)

Meta