Class: Intro::Cache
- Inherits:
-
Object
- Object
- Intro::Cache
- Defined in:
- lib/intro/cache.rb
Class Method Summary collapse
- .delete(controller, action) ⇒ Object
- .read(controller, action) ⇒ Object
- .write(controller, action, value) ⇒ Object
Class Method Details
.delete(controller, action) ⇒ Object
12 13 14 |
# File 'lib/intro/cache.rb', line 12 def delete(controller, action) Rails.cache.delete(cache_token(controller, action)) end |
.read(controller, action) ⇒ Object
8 9 10 |
# File 'lib/intro/cache.rb', line 8 def read(controller, action) Rails.cache.read(cache_token(controller, action)) end |
.write(controller, action, value) ⇒ Object
4 5 6 |
# File 'lib/intro/cache.rb', line 4 def write(controller, action, value) Rails.cache.write(cache_token(controller, action), value) end |