Add-LoaderDataset
Add-LoaderDataset
cmdlet enables the users to add datasets to a cache with cache loader and cache refresher configured.
Add-LoaderDataset [-CacheName] [-Password] [-Port] [-Server] [-Dataset] [-ScheduleExpression] [-RefreshInterval] [-UserId]
These properties are explained in detail in the Properties section.
Examples
- The following cmdlet adds dataset that loads when the cache starts on the cache named demoClusteredCache.
Add-LoaderDataset -CacheName demoClusteredCache -Dataset "product" -Server 20.200.20.29
- The following cmdlet adds dataset which loads on the start of the cache and refreshes 5 minutes relative to the start of the cache, on cache named demoClusteredCache.
Add-LoaderDataset -CacheName demoClusteredCache -Dataset "orders" -ScheduleOption DailyInterval -ScheduleExpression "0:00:00:05"
- The following cmdlet adds dataset that loads data on cache startup and refreshes daily at 5:30 pm, on the cache named demoClusteredCache.
Add-LoaderDataset -CacheName demoClusteredCache -Dataset "product" -ScheduleOption DailyTime -ScheduleExpression "0:00:17:30"
- The following cmdlet shows how to add dataset on the cache named demoClusteredCache that loads data on cache startup and refreshes weekly on Wednesday and Thursday.
Add-LoaderDataset -CacheName demoClusteredCache -Dataset "shipper3" -ScheduleOption Weekly -ScheduleExpression "0:3,4:17:30"
- The following cmdlet adds dataset on cache named demoClusteredCache that loads data on the start of cache and refreshes on 11th and 17th of every month at 5:30 pm.
Add-LoaderDataset -CacheName demoClusteredCache -Dataset "order" -ScheduleOption Monthly -ScheduleExpression "0:10,11:17:30"
- The following cmdlet adds dataset on cache named demoClusteredCache that loads data on the start of the cache and refreshes it on first and second week of every week on Monday and Sunday at 5:30 pm.
Add-LoaderDataset -CacheName demoClusteredCache -Dataset "employee" -ScheduleOption Monthly -ScheduleExpression "1,2:1,7:17:30"
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. The cache with this name is configured with dataset on the server. | - |
-Server* |
<String> |
Specifies the server name where NCache service is running. | Local Machine |
-Port |
<Integer> |
Specifies the port on which NCache service is listening. | 8260 |
-Dataset* |
<String> |
Specifies the name of the dataset that needs to be configured. | - |
-ScheduleOption |
<String> |
Specifies option for scheduling the data. The options are: |
- |
-ScheduleExpression |
<String> |
Specifies the schedule at which datasets need to be refreshed. The format for specifying the ScheduleExpression is Week:Days/Weekdays:Hours:Minutes | - |
-UserId (Enterprise edition only) |
<String> |
Specifies the user-id used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This user-id must be the active directory user-id prefixed with the domain name. | - |
-Password (Enterprise edition only) |
<String> |
Specifies the password of the user that is used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This password must be the same as the active directory user password. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | - |