Method: Cash::Buffered.push

Defined in:
lib/cash/buffered.rb

.push(cache, lock) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/cash/buffered.rb', line 3

def self.push(cache, lock)
  if cache.is_a?(Buffered)
    cache.push
  else
    Buffered.new(cache, lock)
  end
end