3 namespace seekat\API\Call\Cache\Service
;
5 use http\Client\Response
;
6 use seekat\API\Call\Cache\Service
;
8 final class Hollow
implements Service
{
11 public function fetch(string $key, Response
&$response = null) : bool {
12 if (isset($this->storage
[$key])) {
13 $response = $this->storage
[$key];
19 public function store(string $key, Response
$response) : bool {
20 $this->storage
[$key] = $response;
24 public function del(string $key) {
25 unset($this->storage
[$key]);
28 public function clear() {
32 public function getStorage() : array {
33 return $this->storage
;