X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FAPI%2FCall%2FCache%2FService%2FHollow.php;fp=lib%2FAPI%2FCall%2FCache%2FService%2FHollow.php;h=47175ff20e3e3b6070104035f21215d233fcce5f;hp=0000000000000000000000000000000000000000;hb=2451d97f1cb7b97e445b4dd839835b8673a4d0fc;hpb=3958595e9ff27162ae918db1453ddecd4840d481 diff --git a/lib/API/Call/Cache/Service/Hollow.php b/lib/API/Call/Cache/Service/Hollow.php new file mode 100644 index 0000000..47175ff --- /dev/null +++ b/lib/API/Call/Cache/Service/Hollow.php @@ -0,0 +1,32 @@ +storage[$key])) { + $response = $this->storage[$key]; + return true; + } + return false; + } + + public function store(string $key, Response $response) : bool { + $this->storage[$key] = $response; + return true; + } + + public function clear() { + $this->storage = []; + } + + public function getStorage() : array { + return $this->storage; + } +}