delete_matched

delete_matched(matcher, options = nil) Instance Public methods Delete all entries with keys matching the pattern. Options are passed to the underlying cache implementation. All implementations may not support this method.

delete

delete(name, options = nil) Instance Public methods Deletes an entry in the cache. Returns true if an entry is deleted. Options are passed to the underlying cache implementation.

decrement

decrement(name, amount = 1, options = nil) Instance Public methods Decrement an integer value in the cache. Options are passed to the underlying cache implementation. All implementations may not support this method.

clear

clear(options = nil) Instance Public methods Clear the entire cache. Be careful with this method since it could affect other processes if shared cache is being used. The options hash is passed to the underlying cache implementation. All implementations may not support this method.

cleanup

cleanup(options = nil) Instance Public methods Cleanup the cache by removing expired entries. Options are passed to the underlying cache implementation. All implementations may not support this method.

new

new(options = nil) Class Public methods Create a new cache. The options will be passed to any write method calls except for :namespace which can be used to set the global namespace for the cache.

instrument=

instrument=(boolean) Class Public methods Set to true if cache stores should be instrumented. Default is false.

instrument

instrument() Class Public methods

increment

increment(name, amount = 1, options = nil) Instance Public methods

delete_matched

delete_matched(matcher, options = nil) Instance Public methods