Class | ActiveSupport::Cache::SynchronizedMemoryStore |
In: |
vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb
|
Parent: | MemoryStore |
Like MemoryStore, but thread-safe.
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 5 5: def initialize 6: super 7: @guard = Monitor.new 8: end
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 42 42: def clear 43: @guard.synchronize { super } 44: end
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 38 38: def decrement(key, amount = 1) 39: @guard.synchronize { super } 40: end
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 22 22: def delete(name, options = nil) 23: @guard.synchronize { super } 24: end
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 26 26: def delete_matched(matcher, options = nil) 27: @guard.synchronize { super } 28: end
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 30 30: def exist?(name,options = nil) 31: @guard.synchronize { super } 32: end
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 10 10: def fetch(key, options = {}) 11: @guard.synchronize { super } 12: end
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 34 34: def increment(key, amount = 1) 35: @guard.synchronize { super } 36: end
# File vendor/rails/activesupport/lib/active_support/cache/synchronized_memory_store.rb, line 14 14: def read(name, options = nil) 15: @guard.synchronize { super } 16: end