Improve fluent-interface style for transactions with CAS.

This commit is contained in:
Daniele Alessandri
2011-01-01 11:35:48 +01:00
parent 87439ae631
commit 0bbbe064b5
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -903,6 +903,7 @@ class MultiExecBlock {
return $this;
}
$this->initialize();
return $this;
}
public function unwatch() {
+1 -2
View File
@@ -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() {