Clearing the Cache
Clear-Cache cmdlet lets the user clear the cache by removing all the items present in the cache.
Clear-Cache [-Name] [-ForceClear] [-NoLogo]
The parameters of
Clear-Cache cmdlet are explained below.
- For instance, the following command clears all items present in the demoClusteredCache cache. After executing this command, the user is asked for confirmation regarding the removal of all items from the cache.
Clear-Cache -Name demoClusteredCache
- This command forcefully clears all items currently in the demoClusteredCache cache and does not ask the user for confirmation before removing all cache items.
Clear-Cache -Name demoClusteredCache -ForceClear
Note: The parameters with an asterisk (*) with their names are the required parameters and the rest are optional.
|Parameters||Data Types||Description||Default Value|
||This parameter is the name of the cache that needs to be cleared.||-|
||Providing this parameter cleans the cache forcefully without any confirmation from the user.||False|
||Removes display of the logo banner.||False|