Method: Bizside::Cache::FileStore#delete_matched
- Defined in:
- lib/bizside/cache/file_store.rb
#delete_matched(matcher, options = nil) ⇒ Object
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/bizside/cache/file_store.rb', line 41 def delete_matched(matcher, = nil) = () instrument(:delete_matched, matcher.inspect) do matcher = key_matcher(matcher, ) search_dir(cache_path) do |path| key = file_path_key(path) delete_entry(key, ) if key.match(matcher) end end end |