Remove-ClientCache
This PowerShell cmdlet enables the user to remove an existing Client Cache from the client node. After removal, the client will no longer use data from the client cache (L1 cache), and communication will revert to direct interaction with the clustered cache (L2 cache).
Remove-ClientCache -CacheName [-ClientNode] -ClientCacheName [-Port] [-Server] [-Credentials] [-NoLogo]
Examples
- This command removes Client Cache named demoClientCache from client node 20.200.20.11.
Remove-ClientCache -CacheName demoCache -ClientCacheName demoClientCache -ClientNode 20.200.20.11
- This command removes Client Cache named demoClientCache on client node 20.200.20.11 for an already registered clustered cache on server 20.200.20.12.
Remove-ClientCache -CacheName demoCache -ClientCacheName demoClientCache -ClientNode 20.200.20.11 -Server 20.200.20.12
- This command specifies the port to remove Client Cache named demoClientCache on client node 20.200.20.12 for an already registered clustered cache on server 20.200.20.11.
Remove-ClientCache -CacheName demoCache -ClientCacheName demoClientCache -Server 20.200.20.11 -ClientNode 20.200.20.12 -Port 8250
- This command removes Client Cache named demoClientCache from client node 20.200.20.11 using security credentials.
Remove-ClientCache -CacheName demoCache -ClientCacheName demoClientCache -ClientNode 20.200.20.11 -Credentials (Get-Credential john_smith)
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters | Data Types | Description | Default Value |
|---|---|---|---|
-CacheName* |
<String> |
Specifies the name of the clustered cache with which the Client Cache is associated. Note: The cache must already exist on the source server. |
- |
-ClientNode |
<String> |
Specifies the client node on which the Client Cache exists which needs to be removed. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
-ClientCacheName* |
<String> |
Specifies the name or Id of the Client Cache to be removed. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-Server |
<String> |
Specifies a server name where the NCache Service is running and a cache with the specified cache-name is registered. It also identifies the clustered cache node with which the Client Cache is associated. | IP of local machine |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. | - |