RedisValue.expire

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.

struct RedisValue
@safe
bool
expire
(
Duration expire_time
)

Return Value

Type: bool

true iff the expiration time was successfully set.

See Also

Meta