"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.Cache/Classes/Backend/RedisBackend.php" between
flow-development-collection-7.1.0.tar.gz and flow-development-collection-7.1.1.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

RedisBackend.php  (flow-development-collection-7.1.0):RedisBackend.php  (flow-development-collection-7.1.1)
skipping to change at line 158 skipping to change at line 158
}, []); }, []);
$keysToWatch = array_merge(array_column($redisTags, 'key'), [$key]); $keysToWatch = array_merge(array_column($redisTags, 'key'), [$key]);
// @see http://backoffcalculator.com/?attempts=4&rate=2&interval=0.005 // @see http://backoffcalculator.com/?attempts=4&rate=2&interval=0.005
$retryWaitInterval = 0.005; $retryWaitInterval = 0.005;
$maxRetryAttempts = 4; $maxRetryAttempts = 4;
$retryAttempt = 0; $retryAttempt = 0;
do { do {
// Watch the given keys for changes so if the TTL is changed during the transaction it can be retried // Watch the given keys for changes so if the TTL is changed during the transaction it can be retried
$this->redis->watch($keysToWatch); $this->redis->watch(...$keysToWatch);
foreach ($redisTags as $i => $tag) { foreach ($redisTags as $i => $tag) {
$expire = $this->calculateRemainingLifetimeForKey($tag['key'], $ lifetime); $expire = $this->calculateRemainingLifetimeForKey($tag['key'], $ lifetime);
$redisTags[$i]['ttl'] = $expire; $redisTags[$i]['ttl'] = $expire;
} }
$this->redis->multi(); $this->redis->multi();
$result = $this->redis->set($key, $this->compress($data), $setOption s); $result = $this->redis->set($key, $this->compress($data), $setOption s);
if ($result === false) { if ($result === false) {
$this->verifyRedisVersionIsSupported(); $this->verifyRedisVersionIsSupported();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)