yii\caching\Cache::flush PHP Method

flush() public method

Be careful of performing this operation if the cache is shared among multiple applications.
public flush ( ) : boolean
return boolean whether the flush operation was successful.
    public function flush()
    {
        return $this->flushValues();
    }

Usage Example

 /**
  * @return boolean
  *
  * @see yii\caching\Cache::flush()
  */
 public function flush()
 {
     return $this->cache->flush();
 }