Method: Redis#discard

Defined in:
lib/redis.rb

#discardString

Discard all commands issued after MULTI.

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

Returns:

  • (String)

    ‘“OK”`

See Also:



2522
2523
2524
2525
2526
# File 'lib/redis.rb', line 2522

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