RedisValue.expire

bool expire(Duration expire_time)

Sets the key for expiration after the given timeout.

Note that Redis handles timeouts in second resolution, so that the timeout must be at least one second.

Returns

true iff the expiration time was successfully set.

See_also: EXPIRE