CacheModel::setType PHP 메소드

setType() 공개 메소드

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