Module: Catche::Expire::Views
- Defined in:
- lib/catche/expire/views.rb
Class Method Summary collapse
-
.expire!(*keys) ⇒ Object
Expires cache by deleting the associated keys.
Class Method Details
.expire!(*keys) ⇒ Object
Expires cache by deleting the associated keys
Catche::Expire::View.expire!('projects')
10 11 12 13 14 |
# File 'lib/catche/expire/views.rb', line 10 def expire!(*keys) keys.each do |key| Catche.adapter.delete key end end |