Method: Cloudinary::Cache::RailsCacheAdapter#fetch
- Defined in:
- lib/cloudinary/cache/rails_cache_adapter.rb
#fetch(public_id, type, resource_type, transformation, format) ⇒ Object
23 24 25 26 |
# File 'lib/cloudinary/cache/rails_cache_adapter.rb', line 23 def fetch(public_id, type, resource_type, transformation, format) key = generate_cache_key(public_id, type, resource_type, transformation, format) Rails.cache.fetch(key, &Proc.new) end |