change MemCacheStore#increment
and MemCacheStore#decrement
to public API [ci skip]
I'm not sure why these methods not public. But these methods are public in other cache stores, I think that may be in public. Ref: http://edgeapi.rubyonrails.org/classes/ActiveSupport/Cache/Store.html#method-i-increment http://edgeapi.rubyonrails.org/classes/ActiveSupport/Cache/FileStore.html#method-i-increment http://edgeapi.rubyonrails.org/classes/ActiveSupport/Cache/MemoryStore.html#method-i-increment http://edgeapi.rubyonrails.org/classes/ActiveSupport/Cache/NullStore.html#method-i-increment
This commit is contained in:
parent
84650022d5
commit
fa5200fc21
@ -110,7 +110,7 @@ def read_multi(*names)
|
||||
# operator and can only be used on values written with the :raw option.
|
||||
# Calling it on a value not stored with :raw will initialize that value
|
||||
# to zero.
|
||||
def increment(name, amount = 1, options = nil) # :nodoc:
|
||||
def increment(name, amount = 1, options = nil)
|
||||
options = merged_options(options)
|
||||
instrument(:increment, name, amount: amount) do
|
||||
rescue_error_with nil do
|
||||
@ -123,7 +123,7 @@ def increment(name, amount = 1, options = nil) # :nodoc:
|
||||
# operator and can only be used on values written with the :raw option.
|
||||
# Calling it on a value not stored with :raw will initialize that value
|
||||
# to zero.
|
||||
def decrement(name, amount = 1, options = nil) # :nodoc:
|
||||
def decrement(name, amount = 1, options = nil)
|
||||
options = merged_options(options)
|
||||
instrument(:decrement, name, amount: amount) do
|
||||
rescue_error_with nil do
|
||||
|
Loading…
Reference in New Issue
Block a user