PHP8
[m6w6/seekat] / lib / API / Call / Cache / Service / Simple.php
index 901d7aa4d8e46b6205714d75e3fefb2e20931664..4358f1f2f17f37233a6df9a612aa206e1f728227 100644 (file)
@@ -6,8 +6,7 @@ use http\Client\Response;
 use Psr\SimpleCache\CacheInterface;
 use seekat\API\Call\Cache\Service;
 
-final class Simple implements Service
-{
+final class Simple implements Service {
        /**
         * @var CacheInterface
         */
@@ -26,6 +25,10 @@ final class Simple implements Service
                return $this->cache->set($key, $response);
        }
 
+       public function del(string $key) {
+               $this->cache->delete($key);
+       }
+
        public function clear() {
                $this->cache->clear();
        }