Class Index [+]

Quicksearch

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

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.

Public Class Methods

new() click to toggle source
    # File lib/active_support/cache/strategy/local_cache.rb, line 14
14:           def initialize
15:             super
16:             @data = {}
17:           end

Public Instance Methods

clear(options = nil) click to toggle source
    # File lib/active_support/cache/strategy/local_cache.rb, line 24
24:           def clear(options = nil)
25:             @data.clear
26:           end
delete_entry(key, options) click to toggle source
    # File lib/active_support/cache/strategy/local_cache.rb, line 37
37:           def delete_entry(key, options)
38:             !!@data.delete(key)
39:           end
read_entry(key, options) click to toggle source
    # File lib/active_support/cache/strategy/local_cache.rb, line 28
28:           def read_entry(key, options)
29:             @data[key]
30:           end
write_entry(key, value, options) click to toggle source
    # File lib/active_support/cache/strategy/local_cache.rb, line 32
32:           def write_entry(key, value, options)
33:             @data[key] = value
34:             true
35:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.