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 191
191:       def delete_from_cache(key)
192:         cache_class.delete(key)
193:       end

Returns an object from the cache for a given key.

[Source]

     # File lib/cachetastic/cacheable.rb, line 186
186:       def get_from_cache(key, &block)
187:         cache_class.get(key, &block)
188:       end

Sets an object into the cache for a given key.

[Source]

     # File lib/cachetastic/cacheable.rb, line 196
196:       def set_into_cache(key, value, expiry = 0)
197:         cache_class.set(key, value, expiry)
198:       end

[Validate]