Invoke-RefreshDataset
Note
This feature is only available in NCache Enterprise Edition.
Invoke-RefreshDataset
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-RefreshDataset [-CacheName] [-Password] [-Port] [-Server] [-Dataset] [-UserId] [-RefreshPreference]
These properties are explained in detail in the Properties section.
Examples
- The following command refreshes the dataset product immediately on demoClusteredCache on server 20.200.20.11.
Invoke-RefresherDataset -CacheName demoClusteredCache -Server 20.200.20.11 -Dataset product -RefreshPreference RefreshNow
- This command refreshes the dataset product at the configured time of the dataset on demoClusteredCache within the next 24 hours. If the dataset specified will be a load only dataset, its preference will be treated as same as
RefreshNow
Invoke-RefresherDataset -CacheName demoClusteredCache -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. | False |
-Server |
<String> |
Specifies the NCache server name where the NCache service is running. | Local Machine |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-Dataset* |
<string> |
Specifies the name of the pre-configured dataset registered on the cache. | - |
-UserId |
<String> |
Specifies the user id used to authorize a user if security is enabled on cache server. This user id must be the same as the active directory user credentials. | - |
-RefreshPreference* |
<String> |
Specifies whether to refresh the dataset immediately or anytime within next 24 hours. Possible values are:
|
- |
-Password |
<String> |
Specifies the password against the user id. This password is used to authorize a user if security is enabled on cache server. This password must be the same as active directory password. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |