PHP8
[m6w6/seekat] / examples / cache.php
old mode 100644 (file)
new mode 100755 (executable)
index 87c0aef..c71af44
@@ -32,9 +32,12 @@ $cache = new class($redis) implements \seekat\API\Call\Cache\Service {
        function store(string $key, \http\Client\Response $response): bool {
                return $this->redis->set($key, $response);
        }
+       function del(string $key) {
+               return $this->redis->delete($key);
+       }
 };
 
-$api = new seekat\API([
+$api = new seekat\API(seekat\API\Future\react(), [
        "Authorization" => "token ".getenv("GITHUB_TOKEN")
 ], null, null, $log, $cache);