method

delete_matched

rails latest stable - Class: ActiveSupport::Cache::FileStore
delete_matched(matcher, options = nil)
public

No documentation available.

# File activesupport/lib/active_support/cache/file_store.rb, line 79
      def delete_matched(matcher, options = nil)
        options = merged_options(options)
        instrument(:delete_matched, matcher.inspect) do
          matcher = key_matcher(matcher, options)
          search_dir(cache_path) do |path|
            key = file_path_key(path)
            delete_entry(path, **options) if key.match(matcher)
          end
        end
      end