Module: CacheCleaner::Cleaner
- Includes:
- CacheFinder::Helper
- Included in:
- CacheFinder::Cleaner
- Defined in:
- lib/cache_finder/cleaner/cleaner.rb
Class Method Summary collapse
-
.cache(*keys) ⇒ Object
CacheFinder::Cleaner.cache.
Instance Method Summary collapse
Methods included from CacheFinder::Helper
Class Method Details
.cache(*keys) ⇒ Object
CacheFinder::Cleaner.cache
15 16 17 18 19 |
# File 'lib/cache_finder/cleaner/cleaner.rb', line 15 def cache(*keys) keys.each do |key| Rails.cache.delete(key) end end |
Instance Method Details
#cache_cleaner(*keys) ⇒ Object
8 9 10 11 12 |
# File 'lib/cache_finder/cleaner/cleaner.rb', line 8 def cache_cleaner(*keys) keys.each do |key| Rails.cache.delete(cache_container_key?(key)) end end |