Module: RulesEngine::Cache

Defined in:
lib/rules_engine/cache.rb

Class Method Summary collapse

Class Method Details

.cache_storeObject



20
21
22
# File 'lib/rules_engine/cache.rb', line 20

def cache_store
  @cache_store 
end

.cache_store=(store_option) ⇒ Object



16
17
18
# File 'lib/rules_engine/cache.rb', line 16

def cache_store=(store_option)
  @cache_store = store_option.nil? ? nil : ActiveSupport::Cache.lookup_store(store_option)
end

.perform_caching?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/rules_engine/cache.rb', line 12

def perform_caching?
  !@cache_store.nil? 
end