instance method
write
Ruby on Rails 8.0.4
Since v2.2.3Signature
write(name, value, options = nil)
Behaves the same as ActiveSupport::Cache::Store#write, but supports additional options specific to memcached.
Additional Options
-
raw: true- Sends the value directly to the server as raw bytes. The value must be a string or number. You can use memcached direct operations likeincrementanddecrementonly on raw values. -
unless_exist: true- Prevents overwriting an existing cache entry.
Source
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 102
Defined in activesupport/lib/active_support/cache/mem_cache_store.rb line 102
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemCacheStore