Browse Source

Delete ProviderCacheInterface.php

Visman 4 years ago
parent
commit
fd75a85b0f
1 changed files with 0 additions and 52 deletions
  1. 0 52
      app/Core/Cache/ProviderCacheInterface.php

+ 0 - 52
app/Core/Cache/ProviderCacheInterface.php

@@ -1,52 +0,0 @@
-<?php
-
-namespace ForkBB\Core\Cache;
-
-interface ProviderCacheInterface
-{
-    /**
-     * Получение данных из кэша по ключу
-     *
-     * @param string $key
-     * @param mixed $default
-     *
-     * @return mixed
-     */
-    public function get(string $key, $default = null);
-
-    /**
-     * Установка данных в кэш по ключу
-     *
-     * @param string $key
-     * @param mixed $value
-     * @param int $ttl
-     *
-     * @return bool
-     */
-    public function set(string $key, $value, int $ttl = null): bool;
-
-    /**
-     * Удаление данных по ключу
-     *
-     * @param string $key
-     *
-     * @return bool
-     */
-    public function delete(string $key): bool;
-
-    /**
-     * Очистка кэша
-     *
-     * @return bool
-     */
-    public function clear(): bool;
-
-    /**
-     * Проверка наличия ключа
-     *
-     * @param string $key
-     *
-     * @return bool
-     */
-    public function has(string $key): bool;
-}