Add-ClientCacheRefDataType
This PowerShell cmdlet enables users to add reference data types for Full-Data Client Cache.
Add-ClientCacheRefDataType -CacheName -AssemblyPath -Datatype [-NoLogo] [-Port] [-Server] [-Credentials]
Examples
- 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 to where the Full-Data Client Cache is configured. Note: that the cache must already exist on the source server. |
- |
-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 node with which the Client Cache is associated. | - |
-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. | - |