Class/Module Index [+]

Quicksearch

ActiveSupport::Cache::SynchronizedMemoryStore

Like MemoryStore, but thread-safe.

Public Class Methods

new() click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 5
def initialize
  super
  @guard = Monitor.new
end

Public Instance Methods

clear() click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 42
def clear
  @guard.synchronize { super }
end
decrement(key, amount = 1) click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 38
def decrement(key, amount = 1)
  @guard.synchronize { super }
end
delete(name, options = nil) click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 22
def delete(name, options = nil)
  @guard.synchronize { super }
end
delete_matched(matcher, options = nil) click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 26
def delete_matched(matcher, options = nil)
  @guard.synchronize { super }
end
exist?(name,options = nil) click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 30
def exist?(name,options = nil)
  @guard.synchronize { super }
end
fetch(key, options = {}) click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 10
def fetch(key, options = {})
  @guard.synchronize { super }
end
increment(key, amount = 1) click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 34
def increment(key, amount = 1)
  @guard.synchronize { super }
end
read(name, options = nil) click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 14
def read(name, options = nil)
  @guard.synchronize { super }
end
write(name, value, options = nil) click to toggle source
# File lib/active_support/cache/synchronized_memory_store.rb, line 18
def write(name, value, options = nil)
  @guard.synchronize { super }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.