# File lib/moneta/synchronize.rb, line 105 def initialize(store, counter, max = 1) raise 'Store must support feature :increment' unless store.supports?(:increment) @store, @counter, @max = store, counter, max @store.increment(@counter, 0, :expires => false) # Ensure that counter exists end