Method: Redis#discard

Defined in:
lib/redis.rb

#discardObject

Discard all commands issued after MULTI.

Only call this method when #multi was called without a block.

See Also:



2147
2148
2149
2150
2151
# File 'lib/redis.rb', line 2147

def discard
  synchronize do |client|
    client.call([:discard])
  end
end