Method: Dalli::Client#multi

Defined in:
lib/dalli/client.rb

#multiObject

Turn on quiet aka noreply support. All relevant operations within this block will be effectively pipelined as Dalli will use ‘quiet’ operations where possible. Currently supports the set, add, replace and delete operations.



44
45
46
47
48
49
# File 'lib/dalli/client.rb', line 44

def multi
  old, Thread.current[:dalli_multi] = Thread.current[:dalli_multi], true
  yield
ensure
  Thread.current[:dalli_multi] = old
end