Method: Redis#persist

Defined in:
lib/redis.rb

#persist(key) ⇒ Boolean

Remove the expiration from a key.

Parameters:

  • key (String)

Returns:

  • (Boolean)

    whether the timeout was removed or not



296
297
298
299
300
# File 'lib/redis.rb', line 296

def persist(key)
  synchronize do |client|
    client.call([:persist, key], &_boolify)
  end
end