| 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 191
191: def delete_from_cache(key)
192: cache_class.delete(key)
193: end
Returns an object from the cache for a given key.
# File lib/cachetastic/cacheable.rb, line 186
186: def get_from_cache(key, &block)
187: cache_class.get(key, &block)
188: end