Document AS::Cache::MemCacheStore#write options [ci-skip]

This commit is contained in:
Jonathan Hefner 2022-05-18 18:27:57 -05:00
parent 7e884e2996
commit 7563be4d97
1 changed files with 16 additions and 0 deletions

View File

@ -130,6 +130,22 @@ module ActiveSupport
end
end
##
# :method: write
# :call-seq: write(name, value, options = nil)
#
# Behaves the same as ActiveSupport::Cache::Store#write, but supports
# additional options specific to memcached.
#
# ==== Additional Options
#
# * <tt>raw: true</tt> - 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.
#
# * <tt>unless_exist: true</tt> - Prevents overwriting an existing cache
# entry.
# Increment a cached integer value using the memcached incr atomic operator.
# Returns the updated value.
#