Export-CacheKeys - PowerShell Cmdlet
This PowerShell Cmdlet enables the user to view the cache keys of a particular cache on the console. The keys can be filtered on the basis of key filter given using this PowerShell Cmdlet.
Important
NCache OSS has different parameters in some Cmdlet instances. Please refer to the seperate Open Source PowerShell Reference to ensure intended working in this case.
Export-CacheKeys [-Name] [-KeyCount] [-KeyFilter] [-NoLogo] [-Credentials]
Examples of Export-CacheKeys - PowerShell Cmdlet
- This PowerShell Cmdlet dumps the 1000 keys currently present in the cache.
Export-CacheKeys -Name demoCache
- This command dumps the 500 keys currently present in the cache.
Export-CacheKeys -Name demoCache -KeyCount 500
- This command dumps the 500 keys currently present in the cache.
Export-CacheKeys -Name demoCache -KeyCount 500 -KeyFilter 11
- This command dumps the keys currently present in the cache name demoCache of server 20.200.20.11.
Export-CacheKeys -Name demoCache -Server 20.200.20.11
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 keys need to be displayed. | - |
-KeyCount |
<Long> |
Specifies the number of keys the user intends to be displayed at the particular instance. | 1000 |
-KeyFilter |
<String> |
On specifying this parameter the user gets the filtered keys which contain the key filter as the substring. | - |
-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 who has appropriate permissions at the node. | - |