Method: Redis::Distributed#exec

Defined in:
lib/redis/distributed.rb

#execObject

Execute all commands issued after MULTI.

Raises:



1000
1001
1002
1003
1004
1005
1006
# File 'lib/redis/distributed.rb', line 1000

def exec
  raise CannotDistribute, :exec unless @watch_key

  result = node_for(@watch_key).exec
  @watch_key = nil
  result
end