Module: Itrigga::Cache::InstanceMethods

Defined in:
lib/itrigga/cache/cache.rb

Instance Method Summary collapse

Instance Method Details

#cache_log(text, opts = {}) ⇒ Object



67
68
69
# File 'lib/itrigga/cache/cache.rb', line 67

def cache_log(text, opts = {})
  self.class.cache_log(text, opts)
end

#caching_enabled?(opts = {}) ⇒ Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/itrigga/cache/cache.rb', line 48

def caching_enabled?(opts = {})
  self.class.caching_enabled?(opts)
end

#delete_from_cache(key, opts = {}) ⇒ Object



62
63
64
# File 'lib/itrigga/cache/cache.rb', line 62

def delete_from_cache(key, opts = {})
  self.class.delete_from_cache(key, opts)
end

#get_from_cache(key, opts = {}) ⇒ Object



54
55
56
# File 'lib/itrigga/cache/cache.rb', line 54

def get_from_cache(key, opts = {})
  self.class.get_from_cache(key, opts)
end

#set_to_cache(key, value, opts = {}) ⇒ Object



58
59
60
# File 'lib/itrigga/cache/cache.rb', line 58

def set_to_cache(key, value, opts = {})
  self.class.set_to_cache(key, value, opts)
end

#with_cache(opts = {}, &block) ⇒ Object



44
45
46
# File 'lib/itrigga/cache/cache.rb', line 44

def with_cache(opts = {}, &block)
  self.class.with_cache(opts, &block)
end