Try Playground
Show / Hide Table of Contents

Add-ClientCacheRefDataType - PowerShell Cmdlet

This PowerShell cmdlet enables users to add reference data types for Full-Data Client Cache.

Note

This feature is only available in NCache Enterprise.

Note

Please note that when using the Java Edition, you will require .jar assemblies instead of .dll libraries for this PowerShell cmdlet.

  • Windows PowerShell
  • Linux CLI
Add-ClientCacheRefDataType -CacheName -AssemblyPath -Datatype [-NoLogo] [-Port] [-Server] [-Credentials]

Examples of Add-ClientCacheRefDataType - PowerShell Cmdlet

  • This command adds the class Data.Customer reference data type for the Full-Data Client Cache configured in the specified cache on the local server.
Add-ClientCacheRefDataType -CacheName demoCache -AssemblyPath C:\Data.dll -Datatype Data.Customer
  • This command adds the classes Data.Customer and Data.Product as reference data types for the Full-Data Client Cache configured in the specified cache on the server 20.200.20.11.
Add-ClientCacheRefDataType -CacheName demoCache -AssemblyPath C:\Data.dll -Datatype Data.Customer'$'Data.Product -Server 20.200.20.11
  • This command adds the class Data.Customer as reference data type for the Full-Data Client Cache configured in the specified cache on the local server using security credentials.
Add-ClientCacheRefDataType -CacheName demoCache -AssemblyPath C:\Data.dll -Datatype Data.Customer -Credentials (Get-Credential john_smith)

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-AssemblyPath* <String> Specifies the path of the assembly which will be configured as reference data type. -
-CacheName* <String> Specifies the name of the clustered cache where the Full-Data Client Cache is configured. -
-Datatype* <String> Specifies the names of the reference data types configured for Full-Data Client Cache. Multiple data types should be '$' separated, e.g., Data.Customer'$'Data.Product. -
-Port <Integer> Specifies the server port where NCache Service is listening. 9803
-Server <String> Specifies the clustered cache that the client cache is associated with. -
-NoLogo <SwitchParameter> Suppresses display of the logo banner. False
-Credentials <pscredential> Specifies the user credentials used to authorize the user for this operation. It is required in case security is enabled on cache server. The password must be the same as the active directory user password. The user id must be the same as the active directory user id. -
add-clientcacherefdatatype -cachename -assemblypath -datatype [-nologo] [-port] [-server] [-userid] [-password]

Examples of Add-ClientCacheRefDataType - PowerShell Cmdlet

  • This command adds the class Data.Customer as reference data type for the Full-Data Client Cache configured in the specified cache on the local server.
add-clientcacherefdatatype -cachename demoCache -assemblypath /usr/Data.dll -datatype Data.Customer
  • This command adds the classes Data.Customer and Data.Product as reference data types for the Full-Data Client Cache configured in the specified cache on the server 20.200.20.11.
add-clientcacherefdatatype -cachename demoCache -assemblypath /usr/Data.dll -datatype Data.Customer'$'Data.Product -server 20.200.20.11
  • This command adds the class Data.Customer as reference data type for the Full-Data Client Cache configured in the specified cache on the local server using security credentials.
add-clientcacherefdatatype -cachename demoCache -assemblypath /usr/Data.dll -datatype Data.Customer -userid john_smith -password pass123

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-assemblypath* <String> Specifies the path of the assembly which will be configured reference data type. -
-cachename* <String> Specifies the name of the clustered cache where the Full-Data Client Cache is configured. -
-datatype* <String> Specifies the names of the Reference data types configured for Full-Data Client Cache. Multiple data types should be '$' separated, e.g., Data.Customer'$'Data.Product ... -
-port <Integer> Specifies the server port where NCache Service is listening. 9803
-server <String> Specifies the clustered cache that the client cache is associated with.
-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. -
-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. -

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 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top