module Redis::Commands::Keys
def expireat(key, unix_time, nx: nil, xx: nil, gt: nil, lt: nil)
-
(Boolean)
- whether the timeout was set or not
Parameters:
-
options
(Hash
) -- -
unix_time
(Integer
) -- expiry time specified as a UNIX timestamp -
key
(String
) --
def expireat(key, unix_time, nx: nil, xx: nil, gt: nil, lt: nil) args = [:expireat, key, unix_time] args << "NX" if nx args << "XX" if xx args << "GT" if gt args << "LT" if lt send_command(args, &Boolify) end