class Redis

def expire(key, seconds)

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

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