class ActiveSupport::Cache::FileStore

Public Instance Methods

hobo_read_matched(matcher, options = nil) click to toggle source
# File lib/hobo/extensions/active_support/cache/file_store.rb, line 4
def hobo_read_matched(matcher, options = nil)
  Enumerator.new do |y|
    options = merged_options(options)
    matcher = key_matcher(matcher, options)
    search_dir(cache_path) do |path|
      key = file_path_key(path)
      y << [key, read_entry(key, options)] if key.match(matcher)
    end
  end
end
Also aliased as: read_matched
read_matched(matcher, options = nil) click to toggle source
Alias for: hobo_read_matched