PHP8
[m6w6/seekat] / lib / API / Call / Cache / Service / Hollow.php
index 47175ff20e3e3b6070104035f21215d233fcce5f..f08d6d65b919bb114c4263f489719aa8f723f682 100644 (file)
@@ -5,8 +5,7 @@ namespace seekat\API\Call\Cache\Service;
 use http\Client\Response;
 use seekat\API\Call\Cache\Service;
 
-final class Hollow implements Service
-{
+final class Hollow implements Service {
        private $storage = [];
 
        public function fetch(string $key, Response &$response = null) : bool {
@@ -22,6 +21,10 @@ final class Hollow implements Service
                return true;
        }
 
+       public function del(string $key) {
+               unset($this->storage[$key]);
+       }
+
        public function clear() {
                $this->storage = [];
        }