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.
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. | - |