mirror of https://github.com/rails/rails
Document AS::Cache::MemCacheStore#write options [ci-skip]
This commit is contained in:
parent
7e884e2996
commit
7563be4d97
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue