class Redis

def expire(key, seconds)

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

Parameters:
  • seconds (Integer) -- time to live
  • key (String) --
def expire(key, seconds)
  synchronize do |client|
    client.call([:expire, key, seconds], &Boolify)
  end
end