class ActiveSupport::Cache::Strategy::LocalCache::LocalStore

for serving as a temporary memory cache for a single thread.
Simple memory backed cache. This cache is not thread safe and is intended only

def clear(options = nil)

def clear(options = nil)
  @data.clear
end

def delete_entry(key, options)

def delete_entry(key, options)
  !!@data.delete(key)
end

def fetch_entry(key, options = nil) # :nodoc:

:nodoc:
def fetch_entry(key, options = nil) # :nodoc:
  @data.fetch(key) { @data[key] = yield }
end

def initialize

def initialize
  super
  @data = {}
end

def read_entry(key, options)

def read_entry(key, options)
  @data[key]
end

def synchronize # :nodoc:

:nodoc:
Don't allow synchronizing since it isn't thread safe.
def synchronize # :nodoc:
  yield
end

def write_entry(key, value, options)

def write_entry(key, value, options)
  @data[key] = value
  true
end