本文整理汇总了PHP中Illuminate\Cache\CacheManager::flush方法的典型用法代码示例。如果您正苦于以下问题:PHP CacheManager::flush方法的具体用法?PHP CacheManager::flush怎么用?PHP CacheManager::flush使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Cache\CacheManager
的用法示例。
在下文中一共展示了CacheManager::flush方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$this->cache->flush();
$this->files->delete($this->laravel['config']['app.manifest'] . '/services.json');
$this->laravel['events']->fire('cache:cleared');
$this->info('Application cache cleared!');
}
示例2: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$this->laravel['events']->fire('cache:clearing');
$this->cache->flush();
$this->laravel['events']->fire('cache:cleared');
$this->info('Application cache cleared!');
}
示例3: handle
/**
* Handle the command.
*
* @param CacheManager $cache
* @param FieldMigrator $fields
* @param StreamMigrator $streams
* @param AssignmentMigrator $assignments
*/
public function handle(CacheManager $cache, FieldMigrator $fields, StreamMigrator $streams, AssignmentMigrator $assignments)
{
$assignments->reset($this->migration);
$fields->reset($this->migration);
$streams->reset($this->migration);
$cache->flush();
}
示例4: flush
/**
* Remove all items from the cache.
*/
public function flush()
{
$this->cache->flush();
}