From 1788025df7f83b55187a668c582eb6338f80ef3b Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 25 Dec 2016 09:28:45 +0800 Subject: [PATCH] =?UTF-8?q?Cache=E7=B1=BB=E6=B3=A8=E9=87=8A=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Cache.php | 8 +++++--- library/think/Db.php | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/library/think/Cache.php b/library/think/Cache.php index 372da705..7e1b98a9 100644 --- a/library/think/Cache.php +++ b/library/think/Cache.php @@ -11,6 +11,8 @@ namespace think; +use think\cache\Driver; + class Cache { protected static $instance = []; @@ -29,7 +31,7 @@ class Cache * @access public * @param array $options 配置数组 * @param bool|string $name 缓存连接标识 true 强制重新连接 - * @return \think\cache\Driver + * @return Driver */ public static function connect(array $options = [], $name = false) { @@ -77,7 +79,7 @@ class Cache * 切换缓存类型 需要配置 cache.type 为 complex * @access public * @param string $name 缓存标识 - * @return \think\cache\Driver + * @return Driver */ public static function store($name) { @@ -218,7 +220,7 @@ class Cache * @param string $name 标签名 * @param string|array $keys 缓存标识 * @param bool $overlay 是否覆盖 - * @return \think\cache\Driver + * @return Driver */ public static function tag($name, $keys = null, $overlay = false) { diff --git a/library/think/Db.php b/library/think/Db.php index 4998469f..99df4366 100644 --- a/library/think/Db.php +++ b/library/think/Db.php @@ -11,6 +11,7 @@ namespace think; +use think\db\Connection; use think\db\Query; use think\paginator\Collection as PaginatorCollection; @@ -60,7 +61,7 @@ class Db * @access public * @param mixed $config 连接配置 * @param bool|string $name 连接标识 true 强制重新连接 - * @return \think\db\Connection + * @return Connection * @throws Exception */ public static function connect($config = [], $name = false)