X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FAPI%2FCall%2FCache%2FService%2FHollow.php;h=f08d6d65b919bb114c4263f489719aa8f723f682;hp=47175ff20e3e3b6070104035f21215d233fcce5f;hb=2121556150be871684b5046af7cf250b8219128d;hpb=cac6bea94e6cde142c951566fa6387ffa54eb3cb diff --git a/lib/API/Call/Cache/Service/Hollow.php b/lib/API/Call/Cache/Service/Hollow.php index 47175ff..f08d6d6 100644 --- a/lib/API/Call/Cache/Service/Hollow.php +++ b/lib/API/Call/Cache/Service/Hollow.php @@ -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 = []; }