Try Playground
Show / Hide Table of Contents

Add-LoaderDataset - Cache Loader

This enables the users to add datasets to a cache with cache loader and cache refresher configured.

Note

This feature is only available in NCache Enterprise.

  • Windows PowerShell
  • Linux CLI
Add-LoaderDataset [-CacheName] [-Server] [-Port] [-Dataset] [-ScheduleOption] [-ScheduleExpression] [-NoLogo] [-Credentials]

Examples of Add-LoaderDataset - Cache Loader

  • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself after an interval of 5 minutes from cache start.
Add-LoaderDataset -Dataset order -CacheName demoCache -ScheduleExpression 0:00:00:05 -ScheduleOption DailyInterval
  • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself at 03:05 am.
Add-LoaderDataset -Dataset order -CacheName demoCache -ScheduleExpression 0:00:03:05 -ScheduleOption DailyTime
  • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself at 03:05 pm.
Add-LoaderDataset -Dataset order -CacheName demoCache -ScheduleExpression 0:00:15:05 -ScheduleOption DailyTime
  • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself on Monday, Tuesday, Wednesday, Thursday, Friday, Saturday every week at 12:00 pm.
Add-LoaderDataset -Dataset order -CacheName demoCache -ScheduleExpression '0:1,2,3,4,5,6:12:00' -ScheduleOption Weekly
  • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself on 1st, 2nd, 3rd, 4th, Last Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday of every month at 12:00 pm.
Add-LoaderDataset -Dataset order -CacheName demoCache -ScheduleExpression '1,2,3,4,L:1,2,3,4,5,6,7:12:00' -ScheduleOption Monthly
  • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself on 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, 18th, 19th, 20th, 21st, 22nd, 23rd, 24th, 25th, 26th, 27th, 28th, 29th, 30th, 31st, Last of every month at 12:00 am.
Add-LoaderDataset -Dataset order -CacheName demoCache -ScheduleExpression '0:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,L:00:00' -ScheduleOption Monthly

Properties

Note

The parameters with asterisk (*) with 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. 8250
-Dataset* <String> Specifies the name of the dataset that needs to be configured. -
-ScheduleOption <String> Specifies option for scheduling the data. The options are:
  • DailyInterval
  • DailyTime
  • Weekly
  • Monthly
  • -
    -ScheduleExpression <String> Specifies the schedule at which datasets need to be refreshed. The format for specifying the ScheduleExpression is Week:Days/Weekdays:Hours:Minutes -
    -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. -
    add-loaderdataset [-cachename] [-server] [-port] [-dataset] [-scheduleoption] [-scheduleexpression] [-nologo] [-userid] [-password]
    

    Examples of Add-LoaderDataset - Cache Loader

    • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself after an interval of 5 minutes from cache start.
    add-loaderdataset -dataset order -cachename demoCache -scheduleexpression 0:00:00:05 -scheduleoption DailyInterval
    
    • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself at 03:05 am.
    add-loaderdataset -dataset order -cachename demoCache -scheduleexpression 0:00:03:05 -scheduleoption DailyTime
    
    • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself at 03:05 pm.
    add-loaderdataset -dataset order -cachename demoCache -scheduleexpression 0:00:15:05 -scheduleoption DailyTime
    
    • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself on Monday, Tuesday, Wednesday, Thursday, Friday, Saturday every week at 12:00 pm.
    add-loaderdataset -dataset order -cachename demoCache -scheduleexpression '0:1,2,3,4,5,6:12:00' -scheduleoption Weekly
    
    • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself on 1st, 2nd, 3rd, 4th, Last Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday of every month at 12:00 pm.
    add-loaderdataset -dataset order -cachename demoCache -scheduleexpression '1,2,3,4,L:1,2,3,4,5,6,7:12:00' -scheduleoption Monthly
    
    • This command adds dataset on cache loader/refresher configured demoCache that will refresh itself on 1st, 2nd, 3rd, 4th, 5th, 6th, 7th, 8th, 9th, 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, 18th, 19th, 20th, 21st, 22nd, 23rd, 24th, 25th, 26th, 27th, 28th, 29th, 30th, 31st, Last of every month at 12:00 am.
    add-loaderdataset -dataset order -cachename demoCache -scheduleexpression '0:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,L:00:00' -scheduleoption Monthly
    

    Properties

    Note

    The parameters with asterisk (*) with 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. 8250
    -dataset* <String> Specifies the name of the dataset that needs to be configured. -
    -scheduleoption <String> Specifies option for scheduling the data. The options are:
  • DailyInterval
  • DailyTime
  • Weekly
  • Monthly
  • -
    -scheduleexpression <String> Specifies the schedule at which datasets need to be refreshed. The format for specifying the ScheduleExpression is Week:Days/Weekdays:Hours:Minutes -
    -nologo <SwitchParameter> Suppresses display of the logo banner. False
    -userid <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. -
    -password <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. -
    In This Article
    • Examples of Add-LoaderDataset - Cache Loader
    • Properties
    • Examples of Add-LoaderDataset - Cache Loader
    • Properties

    Contact Us

    PHONE

    +1 (214) 764-6933   (US)

    +44 20 7993 8327   (UK)

     
    EMAIL

    sales@alachisoft.com

    support@alachisoft.com

    NCache
    • NCache Enterprise
    • NCache Professional
    • Edition Comparison
    • NCache Architecture
    • Benchmarks
    Download
    Pricing
    Try Playground

    Deployments
    • Cloud (SaaS & Software)
    • On-Premises
    • Kubernetes
    • Docker
    Technical Use Cases
    • ASP.NET Sessions
    • ASP.NET Core Sessions
    • Pub/Sub Messaging
    • Real-Time ASP.NET SignalR
    • Internet of Things (IoT)
    • NoSQL Database
    • Stream Processing
    • Microservices
    Resources
    • Magazine Articles
    • Third-Party Articles
    • Articles
    • Videos
    • Whitepapers
    • Shows
    • Talks
    • Blogs
    • Docs
    Customer Case Studies
    • Testimonials
    • Customers
    Support
    • Schedule a Demo
    • Forum (Google Groups)
    • Tips
    Company
    • Leadership
    • Partners
    • News
    • Events
    • Careers
    Contact Us

    • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

    • Contact Us
    •  
    • Sitemap
    •  
    • Terms of Use
    •  
    • Privacy Policy
    © Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
    Back to top