Sha256: 303a0517df3624196eec7f5aa0d0e361a93deeb831a000feb990f284c3562e33
Contents?: true
Size: 779 Bytes
Versions: 9
Compression:
Stored size: 779 Bytes
Contents
module RulesEngine module Cache # Configuration examples (MemoryStore is the default): # # RulesEngine::SelectorCache.cache_store = :memory_store # RulesEngine::SelectorCache.cache_store = :file_store, "/path/to/cache/directory" # RulesEngine::SelectorCache.cache_store = :drb_store, "druby://localhost:9192" # RulesEngine::SelectorCache.cache_store = :mem_cache_store, "localhost" # RulesEngine::SelectorCache.cache_store = MyOwnStore.new("parameter") class << self def perform_caching? !@cache_store.nil? end def cache_store=(store_option) @cache_store = ActiveSupport::Cache.lookup_store(store_option) end def cache_store @cache_store end end end end
Version data entries
9 entries across 9 versions & 1 rubygems