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



413
414
415
416
417
# File 'lib/redis.rb', line 413

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