CacheModel::setType PHP Method

setType() public method

链式设置缓存类型
public setType ( string $type ) : object
$type string 缓存类型
return object 缓存模型对象
    public function setType($type)
    {
        $this->type = strtoupper($type);
        $this->handler = Cache::getInstance($type);
        return $this;
    }