X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=examples%2Fcache.php;h=c71af446c10ae63d2d23b98b6a359e6db2c0c5ef;hp=797fe60fb6fa184f281e3568d276bf937b213dc0;hb=2121556150be871684b5046af7cf250b8219128d;hpb=cac6bea94e6cde142c951566fa6387ffa54eb3cb diff --git a/examples/cache.php b/examples/cache.php index 797fe60..c71af44 100755 --- a/examples/cache.php +++ b/examples/cache.php @@ -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 del(string $key) { + return $this->redis->delete($key); + } }; $api = new seekat\API(seekat\API\Future\react(), [