class Moneta::WeakIncrement
Adds weak increment support to the underlying store
@note The increment method will not be thread or multi-process safe (this is meant by weak) @api public
Public Class Methods
new(adapter, options = {})
click to toggle source
@param [Moneta store] adapter The underlying store @param [Hash] options
Calls superclass method
Moneta::Proxy.new
# File lib/moneta/weak.rb, line 26 def initialize(adapter, options = {}) raise 'Store already supports feature :increment' if adapter.supports?(:increment) super end