projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update to PHP-8.1
[m6w6/seekat]
/
lib
/
API
/
Call
/
Cache
/
Service
/
Hollow.php
diff --git
a/lib/API/Call/Cache/Service/Hollow.php
b/lib/API/Call/Cache/Service/Hollow.php
index 47175ff20e3e3b6070104035f21215d233fcce5f..dd81ba352ecaf5b6615901aa01b59b0f6c79df74 100644
(file)
--- a/
lib/API/Call/Cache/Service/Hollow.php
+++ b/
lib/API/Call/Cache/Service/Hollow.php
@@
-5,9
+5,8
@@
namespace seekat\API\Call\Cache\Service;
use http\Client\Response;
use seekat\API\Call\Cache\Service;
use http\Client\Response;
use seekat\API\Call\Cache\Service;
-final class Hollow implements Service
-{
- private $storage = [];
+final class Hollow implements Service {
+ private array $storage = [];
public function fetch(string $key, Response &$response = null) : bool {
if (isset($this->storage[$key])) {
public function fetch(string $key, Response &$response = null) : bool {
if (isset($this->storage[$key])) {
@@
-22,7
+21,11
@@
final class Hollow implements Service
return true;
}
return true;
}
- public function clear() {
+ public function del(string $key) : void {
+ unset($this->storage[$key]);
+ }
+
+ public function clear() : void {
$this->storage = [];
}
$this->storage = [];
}