RedisDatabase.setXX

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

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

Meta