Method: ActiveSupport::Cache::MonetaStore#initialize
- Defined in:
- lib/active_support/cache/moneta_store.rb
#initialize(options = nil) ⇒ MonetaStore
Returns a new instance of MonetaStore.
5 6 7 8 9 10 |
# File 'lib/active_support/cache/moneta_store.rb', line 5 def initialize( = nil) raise ArgumentError, 'Option :store is required' unless @store = .delete(:store) @store = ::Moneta.new(@store, expires: true) if Symbol === @store super() extend Strategy::LocalCache end |