Module Cachetastic::Cacheable::ClassOnlyMethods
In: lib/cachetastic/cacheable.rb

Methods

Public Instance methods

Deletes an object from the cache for a given key.

[Source]

     # 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.

[Source]

     # File lib/cachetastic/cacheable.rb, line 182
182:       def get_from_cache(key, &block)
183:         cache_class.get(key, &block)
184:       end

Sets an object into the cache for a given key.

[Source]

     # File lib/cachetastic/cacheable.rb, line 192
192:       def set_into_cache(key, value, expiry = 0)
193:         cache_class.set(key, value, expiry)
194:       end

[Validate]