本文整理匯總了PHP中Doctrine\Common\Cache\CacheProvider::flushAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP CacheProvider::flushAll方法的具體用法?PHP CacheProvider::flushAll怎麽用?PHP CacheProvider::flushAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Doctrine\Common\Cache\CacheProvider
的用法示例。
在下文中一共展示了CacheProvider::flushAll方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: clear
public function clear()
{
if (!$this->hasNamespace()) {
$this->doctrineCache->flushAll();
} else {
$this->withNamespace()->deleteAll();
}
}
示例2: flush
/**
* Flush all cache entries
*
* @access public
* @return void
*/
public function flush()
{
if ($this->flush_namespace) {
$this->adapted_provider->deleteAll();
} else {
$this->adapted_provider->flushAll();
}
}
示例3: flushAllConfigurable
/**
* Flushes cached "configurable" flags for all configs.
*
* @return bool TRUE if the cache entries were successfully flushed; otherwise, FALSE.
*/
public function flushAllConfigurable()
{
$this->localModelCache = [];
return $this->modelCache->flushAll();
}
示例4: flush
public function flush()
{
$this->storage = array();
return $this->engine->flushAll();
}
示例5: flushAll
/**
* {@inheritdoc}
*/
public function flushAll()
{
return $this->provider->flushAll();
}
示例6: flushCache
/**
* Clears all stored items in Cache.
*
* @return boolean true on success.
*/
public function flushCache()
{
return $this->cache->flushAll();
}
示例7: deleteAll
/**
*
*/
public function deleteAll()
{
$this->setList([]);
$this->cache->flushAll();
}
示例8: clearCache
/**
* Clear the cache.
*/
protected function clearCache()
{
self::$cache->flushAll();
}
示例9: clear
/**
* {@inheritdoc}
*/
public function clear()
{
return $this->cache->flushAll();
}
示例10: clearCache
/**
* Clear the cache.
*/
public function clearCache()
{
self::$cache->flushAll();
}
示例11: flushAll
/**
*
*/
public function flushAll()
{
$this->cache->flushAll();
}