class RestrictCache::CacheCollection::CustomCache
Public Instance Methods
add(content)
click to toggle source
# File lib/restrict_cache/cache_collection/custom_cache.rb, line 4 def add(content) @caches[content.class.cache_key] = content end
contents(cache_key = nil)
click to toggle source
# File lib/restrict_cache/cache_collection/custom_cache.rb, line 8 def contents(cache_key = nil) cache_key ? @caches[cache_key] : nil end