clean

clean(backtrace, kind = :silent) Instance Public methods Returns the backtrace after all filters and silencers have been run against it. Filters run first, then silencers. filter

filter

filter(backtrace, kind = :silent) Instance Public methods Alias for: clean

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.

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.

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

new

new(cache_path, options = nil) Class Public methods

cleanup

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

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.

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.

delete_matched

delete_matched(matcher, options = nil) Instance Public methods