Module: RecordCache
- Defined in:
- lib/record_cache/version.rb,
lib/record_cache/base.rb,
lib/record_cache/query.rb,
lib/record_cache/dispatcher.rb,
lib/record_cache/multi_read.rb,
lib/record_cache/statistics.rb,
lib/record_cache/strategy/base.rb,
lib/record_cache/strategy/util.rb,
lib/record_cache/version_store.rb,
lib/record_cache/strategy/index_cache.rb,
lib/record_cache/strategy/full_table_cache.rb,
lib/record_cache/datastore/active_record_30.rb,
lib/record_cache/datastore/active_record_30.rb,
lib/record_cache/datastore/active_record_31.rb,
lib/record_cache/datastore/active_record_31.rb,
lib/record_cache/datastore/active_record_32.rb,
lib/record_cache/datastore/active_record_32.rb,
lib/record_cache/datastore/active_record_40.rb,
lib/record_cache/datastore/active_record_40.rb,
lib/record_cache/datastore/active_record_41.rb,
lib/record_cache/datastore/active_record_41.rb,
lib/record_cache/strategy/unique_index_cache.rb,
lib/record_cache/test/resettable_version_store.rb
Overview
Make sure the version store can be reset to it’s starting point after each test Usage:
require 'record_cache/test/resettable_version_store'
after(:each) { RecordCache::Base.version_store.reset! }
Defined Under Namespace
Modules: ActiveRecord, Arel, Base, MultiRead, Statistics, Strategy, Test, Version Classes: Dispatcher, Query, VersionStore
Constant Summary collapse
- ENABLED =
Normal mode
1
- NO_FETCH =
Do not fetch queries through the cache (but still update the cache after commit)
2
- DISABLED =
Completely disable the cache (may lead to stale results in case caching for other workers is not DISABLED)
3