module Cachetastic::Cacheable::ClassOnlyMethods
Public Instance Methods
delete_from_cache(key)
click to toggle source
Deletes an object from the cache for a given key.
# File lib/cachetastic/cacheable.rb, line 193 def delete_from_cache(key) cache_class.delete(key) end
get_from_cache(key, &block)
click to toggle source
Returns an object from the cache for a given key.
# File lib/cachetastic/cacheable.rb, line 188 def get_from_cache(key, &block) cache_class.get(key, &block) end
set_into_cache(key, value, expiry = 0)
click to toggle source
Sets an object into the cache for a given key.
# File lib/cachetastic/cacheable.rb, line 198 def set_into_cache(key, value, expiry = 0) cache_class.set(key, value, expiry) end