Local Cache Store
Simple memory backed cache. This cache is not thread safe and is intended only for serving as a temporary memory cache for a single thread.
Methods
- C
- D
- N
- R
- W
Class Public methods
new() Link
Source: show
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 36 def initialize @data = {} end
Instance Public methods
clear(options = nil) Link
Source: show
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 40 def clear(options = nil) @data.clear end
delete_entry(key) Link
Source: show
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 57 def delete_entry(key) !!@data.delete(key) end
read_entry(key) Link
Source: show
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 44 def read_entry(key) @data[key] end