Sha256: 3f0f901224cdc7809f1349dabfea99162dc810ef862c9724379d6450da2b12a7
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 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 = store_option.nil? ? nil : ActiveSupport::Cache.lookup_store(store_option) end def cache_store @cache_store end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rules_engine-0.3.3 | lib/rules_engine/cache.rb |