Invoke-RefresherDataset
This PowerShell cmdlet enables the user to refresh a pre-configured dataset at runtime. The dataset is refreshed based on the RefreshPreference. However, if all the nodes are busy refreshing other datasets, then the new datasets are refreshed in the refresh interval when any node is free.
Invoke-RefresherDataset -CacheName [-Port] [-Server] -Dataset [-RefreshPreference] [-Credentials]
Examples
- This command refreshes the dataset product immediately on demoCache on server 20.200.20.11.
Invoke-RefresherDataset -CacheName demoCache -Server 20.200.20.11 -Dataset product -RefreshPreference RefreshNow
- This command refreshes the dataset product at the configured time of the dataset on demoCache within the next 24 hours. If the dataset specified will be a loader only dataset, its preference will be treated the same as
RefreshNow.
Invoke-RefresherDataset -CacheName demoCache -Server 20.200.20.11 -Dataset product -RefreshPreference RefreshOnNextTimeOfDay
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 cache registered on the server. | - |
-Port |
<Integer> |
Specifies the server port where NCache Service is listening. | 8250 |
-Server |
<String> |
Specifies the NCache server name where the NCache Service is running. | Local Machine |
-Dataset* |
<String> |
Specifies the name of the pre-configured dataset registered on the cache. | - |
-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. | - |
-RefreshPreference |
<String> |
Specifies whether to refresh the dataset immediately or anytime within next 24 hours. Possible values are:
|
- |