Like MemoryStore, but thread-safe.
Methods
Public Class methods
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 5 5: def initialize 6: super 7: @guard = Monitor.new 8: end
Public Instance methods
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 42
42: def clear
43: @guard.synchronize { super }
44: end
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 38
38: def decrement(key, amount = 1)
39: @guard.synchronize { super }
40: end
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 22
22: def delete(name, options = nil)
23: @guard.synchronize { super }
24: end
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 26
26: def delete_matched(matcher, options = nil)
27: @guard.synchronize { super }
28: end
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 30
30: def exist?(name,options = nil)
31: @guard.synchronize { super }
32: end
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 10
10: def fetch(key, options = {})
11: @guard.synchronize { super }
12: end
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 34
34: def increment(key, amount = 1)
35: @guard.synchronize { super }
36: end
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 14
14: def read(name, options = nil)
15: @guard.synchronize { super }
16: end
[ show source ]
# File activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 18
18: def write(name, value, options = nil)
19: @guard.synchronize { super }
20: end