PHP8
[m6w6/seekat] / examples / cache.php
index 797fe60fb6fa184f281e3568d276bf937b213dc0..c71af446c10ae63d2d23b98b6a359e6db2c0c5ef 100755 (executable)
@@ -32,6 +32,9 @@ $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 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(seekat\API\Future\react(), [
 };
 
 $api = new seekat\API(seekat\API\Future\react(), [