module JustimmoClient::Caching
Caching
support @api private
Public Class Methods
cache()
click to toggle source
Returns the current cache @!attribute [rw] cache
# File lib/justimmo_client/core/caching.rb, line 20 def cache @cache ||= default_cache end
cache=(c)
click to toggle source
# File lib/justimmo_client/core/caching.rb, line 24 def cache=(c) @cache = c end
default_cache()
click to toggle source
# File lib/justimmo_client/core/caching.rb, line 28 def default_cache cache = JustimmoClient::Config.cache || NullCache.new log.debug("Using default cache #{cache.class}") cache end
Public Instance Methods
cache()
click to toggle source
# File lib/justimmo_client/core/caching.rb, line 35 def cache JustimmoClient::Caching.cache end