Fixing redis cachekey

This commit is contained in:
Philipp Holzer
2019-03-04 21:28:36 +01:00
parent d7426e697d
commit 07bd4cec65
6 changed files with 55 additions and 16 deletions
+6 -2
View File
@@ -65,12 +65,16 @@ class CacheLockDriver extends AbstractLockDriver
{
$cachekey = self::getLockKey($key);
$return = false;
if ($override) {
$this->cache->delete($cachekey);
$return = $this->cache->delete($cachekey);
} else {
$this->cache->compareDelete($cachekey, getmypid());
$return = $this->cache->compareDelete($cachekey, getmypid());
}
$this->markRelease($key);
return $return;
}
/**