new

new(key_generator) Class Public methods

lookup_store

lookup_store(*store_option) Class Public methods Creates a new CacheStore object according to the given options. If no arguments are passed to this method, then a new ActiveSupport::Cache::MemoryStore object will be returned. If you pass a Symbol as the first argument, then a corresponding cache store class under the ActiveSupport::Cache namespace will be created. For example: ActiveSupport::Cache.lookup_store(:memory_store) # => returns a new ActiveSupport::Cache::MemoryStore o

expand_cache_key

expand_cache_key(key, namespace = nil) Class Public methods Expands out the key argument into a key that can be used for the cache store. Optionally accepts a namespace, and all keys will be scoped within that namespace. If the key argument provided is an array, or responds to to_a, then each of elements in the array will be turned into parameters/keys and concatenated into a single key. For example: expand_cache_key([:foo, :bar]) # => "foo/bar" expand_cache_key([:

with_local_cache

with_local_cache() Instance Public methods Use a local cache for the duration of block.

middleware

middleware() Instance Public methods Middleware class can be inserted as a Rack handler to be local cache for the duration of request.

write_entry

write_entry(key, value, options) Instance Public methods

read_entry

read_entry(key, options) Instance Public methods

delete_entry

delete_entry(key, options) Instance Public methods

clear

clear(options = nil) Instance Public methods

new

new() Class Public methods