8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa95fcb commit a0d601aCopy full SHA for a0d601a
tests/RedisTest.php
@@ -2487,6 +2487,23 @@ public function testPipeline() {
2487
$this->redis->setOption(Redis::OPT_PREFIX, "");
2488
}
2489
2490
+ public function testPipelineMultiExec()
2491
+ {
2492
+ if (!$this->havePipeline()) {
2493
+ $this->markTestSkipped();
2494
+ }
2495
+
2496
+ $ret = $this->redis->pipeline()
2497
+ ->ping()
2498
+ ->multi()->set('x', 42)->incr('x')->exec()
2499
2500
+ ->multi()->get('x')->del('x')->exec()
2501
2502
+ ->exec();
2503
+ $this->assertTrue(is_array($ret));
2504
+ $this->assertEquals(5, count($ret)); // should be 5 atomic operations
2505
2506
2507
protected function sequence($mode) {
2508
$ret = $this->redis->multi($mode)
2509
->set('x', 42)
0 commit comments