Method: Redis::Commands::Keys#pexpireat
- Defined in:
- lib/redis/commands/keys.rb
#pexpireat(key, ms_unix_time, nx: nil, xx: nil, gt: nil, lt: nil) ⇒ Boolean
Set the expiration for a key as number of milliseconds from UNIX Epoch.
166 167 168 169 170 171 172 173 174 |
# File 'lib/redis/commands/keys.rb', line 166 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 |