From 6b8eba556bf18c3e838e286f63a87f1f58d15204 Mon Sep 17 00:00:00 2001 From: pakey Date: Sat, 5 Mar 2016 18:59:47 +0800 Subject: [PATCH] Update Cache.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加代码注释 方便IDE自动提示如 Cache::get() --- library/think/Cache.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/library/think/Cache.php b/library/think/Cache.php index eaaad34c..333db049 100644 --- a/library/think/Cache.php +++ b/library/think/Cache.php @@ -11,6 +11,15 @@ namespace think; +/** + * Class Cache + * + * @package think + * @method static mixed get() get(string $name) + * @method static bool set() set(string $name, mixed $value, mixed $expire = null) + * @method static bool rm() rm(string $name, bool $expire = false) + * @method static bool clear() clear() + */ class Cache { protected static $instance = [];