Method: Cash::Buffered#initialize

Defined in:
lib/cash/buffered.rb

#initialize(memcache, lock) ⇒ Buffered

Returns a new instance of Buffered.



11
12
13
14
15
16
# File 'lib/cash/buffered.rb', line 11

def initialize(memcache, lock)
  @buffer = {}
  @commands = []
  @cache = memcache
  @lock = lock
end