Sha256: b2864068f4cef20dd624c08d1eb3962918da7e53a174462bc4c5a4b9c3b3a744
Contents?: true
Size: 803 Bytes
Versions: 22
Compression:
Stored size: 803 Bytes
Contents
The Cantango Cache engine is used to cache rules between requests. It will be referenced here as the 'rules cache'. The rules cache needs a store to store the rules. Cantango is setup to use a Session store by default. The session store is internally setup to wrap a Moneta memory store. To configure the cache store for the rules cache: ```ruby Cantango.configure do |config| config.cache.store do |store| store.default Cantango::Cache::MonetaCache store.default_type :redis store.options = {:port => 5032} end end ``` Alternatively you can define your own Cache store factory: ```ruby Cantango.configure do |config| config.cache.store do |store| store.factory Proc.new {|name, options| MyFantasticCache.new name, {:awesome_power => true}.merge(options) } end end ```
Version data entries
22 entries across 22 versions & 1 rubygems