X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fobjectcache%2FSqlBagOStuff.php;h=66b488e1945ef2668088ca7fb1503abd22ded1d7;hb=5537b54249ba8d70cdf97e5a20a35c4249b33327;hp=eeb7355bc567ea139e6fe45dd04c867a5e785d0b;hpb=db1f41172f6f7670b87c96bfb11a2cab07ac19ac;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/objectcache/SqlBagOStuff.php b/includes/objectcache/SqlBagOStuff.php index eeb7355bc5..66b488e194 100644 --- a/includes/objectcache/SqlBagOStuff.php +++ b/includes/objectcache/SqlBagOStuff.php @@ -311,7 +311,7 @@ class SqlBagOStuff extends BagOStuff { return $values; } - public function setMulti( array $data, $expiry = 0 ) { + public function setMulti( array $data, $expiry = 0, $flags = 0 ) { $keysByTable = []; foreach ( $data as $key => $value ) { list( $serverIndex, $tableName ) = $this->getTableByKey( $key ); @@ -381,7 +381,7 @@ class SqlBagOStuff extends BagOStuff { return $ok; } - protected function cas( $casToken, $key, $value, $exptime = 0 ) { + protected function cas( $casToken, $key, $value, $exptime = 0, $flags = 0 ) { list( $serverIndex, $tableName ) = $this->getTableByKey( $key ); $db = null; $silenceScope = $this->silenceTransactionProfiler(); @@ -493,7 +493,7 @@ class SqlBagOStuff extends BagOStuff { } public function merge( $key, callable $callback, $exptime = 0, $attempts = 10, $flags = 0 ) { - $ok = $this->mergeViaCas( $key, $callback, $exptime, $attempts ); + $ok = $this->mergeViaCas( $key, $callback, $exptime, $attempts, $flags ); if ( ( $flags & self::WRITE_SYNC ) == self::WRITE_SYNC ) { $ok = $this->waitForReplication() && $ok; } @@ -501,7 +501,7 @@ class SqlBagOStuff extends BagOStuff { return $ok; } - public function changeTTL( $key, $expiry = 0 ) { + public function changeTTL( $key, $expiry = 0, $flags = 0 ) { list( $serverIndex, $tableName ) = $this->getTableByKey( $key ); $db = null; $silenceScope = $this->silenceTransactionProfiler();