Think/Cache.php
public static function getInstance($type = '', $options = [])
    {
        static $_instance = [];
        $guid = $type.to_guid_string($options);
        if (!isset($_instance[$guid])) {
            $obj = new static();
            $_instance[$guid] = $obj->connect($type, $options);
        }

        return $_instance[$guid];
    }
public static function getInstance($type = '', $options = [])
    {
        static $_instance = [];
        $guid = $type.to_guid_string($options);
        if (!isset($_instance[$guid])) {
            $obj = new static();
            $_instance[$guid] = $obj->connect($type, $options);
        }

        return $_instance[$guid];
    }
取得缓存类实例

@param string $type
@param array $options

@return mixed
@throws BaseException