Class: ActiveCachedResource::CachingStrategies::SQLCache
- Defined in:
- lib/active_cached_resource/caching_strategies/sql_cache.rb
Instance Method Summary collapse
-
#initialize(model, options = {}) ⇒ SQLCache
constructor
A new instance of SQLCache.
Methods inherited from Base
#clear, #delete, #read, #write
Constructor Details
#initialize(model, options = {}) ⇒ SQLCache
Returns a new instance of SQLCache.
6 7 8 9 10 |
# File 'lib/active_cached_resource/caching_strategies/sql_cache.rb', line 6 def initialize(model, = {}) super() @model = model @batch_clear_size = .fetch(:batch_clear_size, 1000) end |