module RecordCache
Utility methods for the Cache Strategies
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! }
Constants
- DISABLED
Completely disable the cache (may lead to stale results in case caching for other workers is not
DISABLED
)- ENABLED
Normal mode
- NO_FETCH
Do not fetch queries through the cache (but still update the cache after commit)