Fixing redis cachekey
This commit is contained in:
parent
d7426e697d
commit
07bd4cec65
6 changed files with 55 additions and 16 deletions
|
@ -76,11 +76,11 @@ class DatabaseLockDriver extends AbstractLockDriver
|
|||
$where = ['name' => $key, 'pid' => $this->pid];
|
||||
}
|
||||
|
||||
DBA::delete('locks', $where);
|
||||
$return = DBA::delete('locks', $where);
|
||||
|
||||
$this->markRelease($key);
|
||||
|
||||
return;
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -88,9 +88,11 @@ class DatabaseLockDriver extends AbstractLockDriver
|
|||
*/
|
||||
public function releaseAll()
|
||||
{
|
||||
DBA::delete('locks', ['pid' => $this->pid]);
|
||||
$return = DBA::delete('locks', ['pid' => $this->pid]);
|
||||
|
||||
$this->acquiredLocks = [];
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue