Module: Cachable::InstanceMethods

Defined in:
lib/cachable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cache_storeObject



50
51
52
# File 'lib/cachable.rb', line 50

def cache_store
  @cache_store ||= nil
end

#store_optionsObject



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

def store_options
  @store_options ||= {}
end

Instance Method Details

#is_caching?Boolean

Returns:

  • (Boolean)


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

def is_caching?
  !@cache_store.nil?
end