instance method
write_key_expiry
Ruby on Rails 6.0.6
Since v6.0.6 Last seen in v7.0.10 PrivateSignature
write_key_expiry(client, key, options)
No documentation comment.
Parameters
-
clientreq -
keyreq -
optionsreq
Source
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 404
def write_key_expiry(client, key, options)
if options[:expires_in] && client.ttl(key).negative?
client.expire key, options[:expires_in].to_i
end
end
Defined in activesupport/lib/active_support/cache/redis_cache_store.rb line 404
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::RedisCacheStore