module Redis::Commands::Keys

def pexpireat(key, ms_unix_time, nx: nil, xx: nil, gt: nil, lt: nil)

Returns:
  • (Boolean) - whether the timeout was set or not

Parameters:
  • options (Hash) --
  • ms_unix_time (Integer) -- expiry time specified as number of milliseconds from UNIX Epoch.
  • key (String) --
def pexpireat(key, ms_unix_time, nx: nil, xx: nil, gt: nil, lt: nil)
  args = [:pexpireat, key, Integer(ms_unix_time)]
  args << "NX" if nx
  args << "XX" if xx
  args << "GT" if gt
  args << "LT" if lt
  send_command(args, &Boolify)
end