mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
Improve fluent-interface style for transactions with CAS.
This commit is contained in:
@@ -903,6 +903,7 @@ class MultiExecBlock {
|
||||
return $this;
|
||||
}
|
||||
$this->initialize();
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function unwatch() {
|
||||
|
||||
@@ -701,8 +701,7 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
function testMultiExecBlock_RetryNotAvailableWithoutBlock() {
|
||||
$options = array('watch' => 'foo', 'retry' => 1);
|
||||
$tx = RC::getConnection()->multiExec($options);
|
||||
$tx->multi();
|
||||
$tx->get('foo')->exec();
|
||||
$tx->multi()->get('foo')->exec();
|
||||
}
|
||||
|
||||
function testMultiExecBlock_CheckAndSet_Discard() {
|
||||
|
||||
Reference in New Issue
Block a user