Module | Cachetastic::Cacheable::ClassOnlyMethods |
In: |
lib/cachetastic/cacheable.rb
|
Deletes an object from the cache for a given key.
# File lib/cachetastic/cacheable.rb, line 187 187: def delete_from_cache(key) 188: cache_class.delete(key) 189: end
Returns an object from the cache for a given key.
# File lib/cachetastic/cacheable.rb, line 182 182: def get_from_cache(key, &block) 183: cache_class.get(key, &block) 184: end