RedisDatabase.expire

Set a key's time to live with D notation. E.g. 5.minutes for 60 * 5 seconds.

  1. bool expire(string key, long seconds)
  2. bool expire(string key, Duration timeout)
    struct RedisDatabase
    bool
    expire
    (
    string key
    ,
    Duration timeout
    )

Meta