This commit is contained in:
Gitea
2022-01-24 10:43:35 +08:00
commit 15dfc6576b
786 changed files with 219240 additions and 0 deletions

28
core/cache/Builder.php vendored Normal file
View File

@@ -0,0 +1,28 @@
<?php
/**
* @copyright (C)2016-2099 Hnaoyun Inc.
* @author XingMeng
* @email hnxsh@foxmail.com
* @date 2017年10月24日
* 缓存类接口
*/
namespace core\cache;
interface Builder
{
// 用于获取单一实例
public static function getInstance();
// 写入缓存
public function set($key, $value);
// 读取缓存
public function get($key);
// 删除缓存
public function delete($key);
// 清理缓存
public function flush();
}