Clear-Cache
Clear-Cache
cmdlet enables the user to clear the cache by removing all the items currently present in the cache.
Clear-Cache [-Name] [-ForceClear] [-NoLogo]
The parameters along with their descriptions are explained below.
Examples
- This command clears the items present in the cache named demoClusteredCache.
Clear-Cache -Name demoClusteredCache
- This command clears the items present in the cache named demoClusteredCache forcefully and does not ask the user for confirmation before clearing the cache.
Clear-Cache -Name demoClusteredCache -ForceClear
Note: The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-Name* |
<String> |
Specifies the name of the cache which needs to be cleared. | - |
-ForceClear |
<SwitchParameter> |
Providing this parameter cleans the cache forcefully whereas in normal situations the user is asked before clearing the cache. | False |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
See Also
Set Up PowerShell Environment
Add-TestData
Export-CacheConfiguration
Export-CacheData
TroubleShooting