Add missing documentation for MemoryStore#clear [ci skip]
We were missing some form of documentation for this method, so I've gone ahead and added some!
This commit is contained in:
parent
3a558aa2bc
commit
355bdeb54e
@ -28,6 +28,7 @@ def initialize(options = nil)
|
||||
@pruning = false
|
||||
end
|
||||
|
||||
# Delete all data stored in a given cache store.
|
||||
def clear(options = nil)
|
||||
synchronize do
|
||||
@data.clear
|
||||
@ -83,6 +84,7 @@ def decrement(name, amount = 1, options = nil)
|
||||
modify_value(name, -amount, options)
|
||||
end
|
||||
|
||||
# Deletes cache entires if the cache key matches a given pattern
|
||||
def delete_matched(matcher, options = nil)
|
||||
options = merged_options(options)
|
||||
instrument(:delete_matched, matcher.inspect) do
|
||||
|
Loading…
Reference in New Issue
Block a user