think\Cache::clear PHP Method

clear() public static method

清除缓存
public static clear ( string $tag = null ) : boolean
$tag string 标签名
return boolean
    public static function clear($tag = null)
    {
        self::init();
        self::$writeTimes++;
        return self::$handler->clear($tag);
    }

Usage Example

コード例 #1
0
ファイル: Config.php プロジェクト: cjango/cwms
 /**
  * 清除缓存
  */
 public function clear()
 {
     if (Cache::clear()) {
         return $this->success('清除缓存成功');
     } else {
         return $this->error();
     }
 }
All Usage Examples Of think\Cache::clear