delete_entry

delete_entry(key, options) Instance Protected methods

increment

increment(name, amount = 1, options = nil) Instance Public methods Increments an already existing integer value that is stored in the cache. If the key is not found nothing is done.

delete_matched

delete_matched(matcher, options = nil) Instance Public methods

decrement

decrement(name, amount = 1, options = nil) Instance Public methods Decrements an already existing integer value that is stored in the cache. If the key is not found nothing is done.

clear

clear(options = nil) Instance Public methods Deletes all items from the cache. In this case it deletes all the entries in the specified file store directory except for .gitkeep. Be careful which directory is specified in your config file when using FileStore because everything in that directory will be deleted.

cleanup

cleanup(options = nil) Instance Public methods Preemptively iterates through all stored keys and removes the ones which have expired.

new

new(cache_path, options = nil) Class Public methods

benchmark

benchmark(message = "Benchmarking", options = {}) Instance Public methods Allows you to measure the execution time of a block in a template and records the result to the log. Wrap this block around expensive operations or possible bottlenecks to get a time reading for the operation. For example, let's say you thought your file processing method was taking too long; you could wrap it in a benchmark block. <% benchmark 'Process data files' do %> <%= expensive_files_operati

remove_silencers!

remove_silencers!() Instance Public methods Will remove all silencers, but leave in the filters. This is useful if your context of debugging suddenly expands as you suspect a bug in one of the libraries you use.

remove_filters!

remove_filters!() Instance Public methods Removes all filters, but leaves in silencers. Useful if you suddenly need to see entire filepaths in the backtrace that you had already filtered out.