Try Playground
Show / Hide Table of Contents

Add-TestData - PowerShell Cmdlet

This PowerShell Cmdlet enables the user to add some test data to the cache to check if the cache has started and is working properly. By default this data expires after the time interval of 300 seconds. The item size can be specified by the user in the PowerShell Cmdlet.

Note

This feature is only available in NCache Enterprise and Professional.

  • Windows PowerShell
  • Linux CLI
Add-TestData [-CacheName] [-Server] [-ItemCount] [-DataSize] [-AbsoluteExpiration] [-NoLogo] [-Credentials]

Examples of Add-TestData - PowerShell Cmdlet

  • This PowerShell Cmdlet adds 10 items to the demoCache with an expiry of 5 minutes. This command reads deployment details specified in client.ncconf.
Add-TestData –CacheName demoCache
  • This command adds 100 items to the demoCache with an expiry of 5 minutes. This command reads deployment details specified in client.ncconf.
Add-TestData -CacheName demoCache -ItemCount 100
  • This command adds 100 items of size 2KB to the demoCache with an expiry of 5 minutes. This command reads deployment details specified in client.ncconf.
Add-TestData -CacheName demoCache -ItemCount 100 -DataSize 2048
  • This command adds 100 items to the demoCache with an expiry of 5 minutes. This command ignores deployment details specified in client.ncconf.
Add-TestData -CacheName demoCache -ItemCount 100 -Server "20.200.20.11,20.200.20.12"

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 to which test data will be added. -
-Server <String> Specifies one or more ip-address(es) for one or more cache-server(s). This option can be used to customize the list of ip-address(es) to be displayed. Note: Comma separated ip-addresses are to be specified in case of multiple servers inside double quotes. -
-ItemCount <Long> Specifies the number of test items to be added to the cache. 10
-DataSize <Long> Specifies the size of each item to be added to the cache. 1k (1024 bytes)
-AbsoluteExpiration <Double> Specifies the time in seconds for the Absolute expiration of the test data items. Its minimum value is 15 seconds. 300 seconds
-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-testdata [-cachename] [-server] [-itemcount] [-datasize] [-absoluteexpiration] [-nologo] [-userid] [-password]

Examples of Add-TestData

  • This command adds 10 items to the demoCache with an expiry of 5 minutes. This command reads deployment details specified in client.ncconf.
add-testdata –cachename demoCache
  • This command adds 100 items to the demoCache with an expiry of 5 minutes. This command reads deployment details specified in client.ncconf.
add-testdata -cachename demoCache -itemcount 100
  • This command adds 100 items of size 2KB to the demoCache with an expiry of 5 minutes. This command reads deployment details specified in client.ncconf.
add-testdata -cachename demoCache -itemcount 100 -datasize 2048
  • This command adds 100 items to the demoCache with an expiry of 5 minutes. This command ignores deployment details specified in client.ncconf.
add-testdata -cachename demoCache -itemcount 100 -server "20.200.20.11,20.200.20.12"

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 to which test data will be added. -
-server <String> Specifies one or more ip-address(es) for one or more cache-server(s). This option can be used to customize the list of ip-address(es) to be displayed. Note: Comma separated ip-addresses are to be specified in case of multiple servers inside double quotes. -
-itemcount <Long> Specifies the number of test items to be added to the cache. 10
-datasize <Long> Specifies the size of each item to be added to the cache. 1k (1024 bytes)
-absoluteexpiration <Double> Specifies the time in seconds for the Absolute expiration of the test data items. Its minimum value is 15 seconds. 300 seconds
-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-TestData - PowerShell Cmdlet
  • Properties
  • Examples of Add-TestData
  • 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