Method: Redis#exec

Defined in:
lib/redis.rb

#execnil, Array<...>

Execute all commands issued after MULTI.

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

Returns:

  • (nil, Array<...>)
    • when commands were not executed, nil
    • when commands were executed, an array with their replies

See Also:



2133
2134
2135
2136
2137
# File 'lib/redis.rb', line 2133

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