Class: ActiveCachedResource::CachingStrategies::SQLCache

Inherits:
Base
  • Object
show all
Defined in:
lib/active_cached_resource/caching_strategies/sql_cache.rb

Instance Method Summary collapse

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, options = {})
  super()
  @model = model
  @batch_clear_size = options.fetch(:batch_clear_size, 1000)
end