callmez\wechat\sdk\components\BaseWechat::setCache PHP Method

setCache() protected method

缓存微信数据
protected setCache ( $name, $value, null $duration = null ) : boolean
$name
$value
$duration null
return boolean
    protected function setCache($name, $value, $duration = null)
    {
        $duration === null && ($duration = $this->cacheTime);
        return Yii::$app->cache->set($this->getCacheKey($name), $value, $duration);
    }