instance method
write_entry
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
write_entry(key, entry, raw: false, **options)
Write an entry to the cache.
Requires Redis 2.6.12+ for extended SET options.
Parameters
-
keyreq -
entryreq -
rawkey = false -
optionskeyrest
Source
# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 376
def write_entry(key, entry, raw: false, **options)
write_serialized_entry(key, serialize_entry(entry, raw: raw, **options), raw: raw, **options)
end
Defined in activesupport/lib/active_support/cache/redis_cache_store.rb line 376
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::RedisCacheStore