Get-CacheCount
This PowerShell cmdlet enables the user to get the total number of items currently present in the cache.
Note
This feature is also available in the NCache Community Edition.
Get-CacheCount -Name [-Server] [-NoLogo] [-Credentials]
Examples
- This command displays total number of items currently present in the cache. This command reads the deployment details specified in the config.ncconf.
Get-CacheCount -Name demoCache
- This command displays total number of items currently present in the cache. This command ignores the deployment details specified in the config.ncconf.
Get-CacheCount -Name demoCache -Server "20.200.20.11,20.200.20.12"
Properties
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 for which the item count is needed. | - |
-Server |
<String> |
Specifies one or more IP-address(es) for one or more cache-server(s). This option can be used to customize the list of IP-address(es) to be displayed. Note: Comma separated ip-addresses are to be specified in case of multiple servers inside double quotes. |
- |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
-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. | - |