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
10 private $storage = [];
12 public function fetch(string $key, Response
&$response = null) : bool {
13 if (isset($this->storage
[$key])) {
14 $response = $this->storage
[$key];
20 public function store(string $key, Response
$response) : bool {
21 $this->storage
[$key] = $response;
25 public function clear() {
29 public function getStorage() : array {
30 return $this->storage
;