clue/reactphp-redis

Question : Async transaction

sm2017 opened this issue · 1 comments

Is clue/php-redis-react safe for redis transactions?

$client->multi();
$client->incr('foo');
$client->incr('bar');
$client->exec();

I want to know as clue/php-redis-react have async behavior . Do you handle transaction correctly?

clue commented

Yes, this is correctly handled by this library. Redis is responsible for transaction handling, this library merely transports your commands/arguments to your Redis server.

The EXEC command will return with an array of replies for all commands in your transaction.