Class: Smooth::Adapters::RailsCache
- Inherits:
-
Object
- Object
- Smooth::Adapters::RailsCache
- Defined in:
- lib/smooth/adapters/rails_cache.rb
Instance Method Summary collapse
Instance Method Details
#fetch(key, &block) ⇒ Object
14 15 16 |
# File 'lib/smooth/adapters/rails_cache.rb', line 14 def fetch key, &block Rails.cache.fetch key, &block end |
#get(key) ⇒ Object
5 6 7 |
# File 'lib/smooth/adapters/rails_cache.rb', line 5 def get key Rails.cache.get(key) end |
#write(key, value) ⇒ Object
9 10 11 12 |
# File 'lib/smooth/adapters/rails_cache.rb', line 9 def write key, value Rails.cache.write(key, value) value end |