instance method write

Ruby on Rails 8.1.2

Since v2.2.3

Available in: v2.2.3 v2.3.18 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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 like increment and decrement only on raw values.

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

Type at least 2 characters to search.

↑↓ navigate · open · esc close