File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
activesupport/lib/active_support/cache Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,22 @@ def initialize(*addresses)
130
130
end
131
131
end
132
132
133
+ ##
134
+ # :method: write
135
+ # :call-seq: write(name, value, options = nil)
136
+ #
137
+ # Behaves the same as ActiveSupport::Cache::Store#write, but supports
138
+ # additional options specific to memcached.
139
+ #
140
+ # ==== Additional Options
141
+ #
142
+ # * <tt>raw: true</tt> - Sends the value directly to the server as raw
143
+ # bytes. The value must be a string or number. You can use memcached
144
+ # direct operations like +increment+ and +decrement+ only on raw values.
145
+ #
146
+ # * <tt>unless_exist: true</tt> - Prevents overwriting an existing cache
147
+ # entry.
148
+
133
149
# Increment a cached integer value using the memcached incr atomic operator.
134
150
# Returns the updated value.
135
151
#
You can’t perform that action at this time.
0 commit comments