LockDriverFixings

- release Locks in case of failures
- adding some cache tests
This commit is contained in:
Philipp Holzer 2018-09-06 08:11:18 +02:00
parent f148dcabc4
commit bd2b3b1ef5
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
4 changed files with 27 additions and 5 deletions

View file

@ -53,6 +53,11 @@ class ArrayCache extends AbstractCacheDriver implements IMemoryCacheDriver
*/
public function clear($outdated = true)
{
// Array doesn't support TTL so just don't delete something
if ($outdated) {
return true;
}
$this->cachedData = [];
return true;
}