内核更新

This commit is contained in:
2016-08-16 16:14:36 +08:00
parent ebde0fc13e
commit 81a25be484
25 changed files with 340 additions and 129 deletions

View File

@@ -58,13 +58,14 @@ class Cache
/**
* 自动初始化缓存
* @access public
* @param array $options 配置数组
* @return void
*/
public static function init()
public static function init(array $options = [])
{
if (is_null(self::$handler)) {
// 自动初始化缓存
self::connect(Config::get('cache'));
self::connect($options ?: Config::get('cache'));
}
}