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.
- 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|
||Specifies the name of the cache which needs to be cleared.||-|
||Providing this parameter cleans the cache forcefully whereas in normal situations the user is asked before clearing the cache.||False|
||Suppresses display of the logo banner.||False|