Delete ProviderCacheInterface.php
This commit is contained in:
parent
ed26a085b6
commit
fd75a85b0f
1 changed files with 0 additions and 52 deletions
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue