Export Cache Keys
The Export-CacheKeys
tool enables the user to view the cache keys of a particular cache on the console. The keys can be filtered on the basis of the key filter given.
Export-CacheKeys [-Name] [-KeyCount] [-KeyFilter] [-NoLogo]
These properties are explained in detail in the Properties section.
Examples
- This command displays the keys in the cache named demoCache. It displays the first 1000 keys or less since the default key count to be displayed is 1000.
Export-CacheKeys -Name demoCache
- This command displays any 200 keys present in the cache.
Export-CacheKeys -Name demoCache –KeyCount 200
- This command displays 200 keys present in the cache with 11 as a substring in the key values.
Export-CacheKeys demoCache –KeyCount 200 –KeyFilter 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 |