Add-PortableType - PowerShell Cmdlet
This PowerShell Cmdlet enables the user to register different custom classes and different data types for data sharing which reduces traffic and data size with the help of Compact Serialization. Data sharing can be configured between different versions of objects of same platform as well as different objects of different platforms using this PowerShell Cmdlet.
Note
This feature is only available in NCache Enterprise.
Add-PortableType [-CacheName] -ConfigPath [-Server] [-Port] [-Credentials] [-NoLogo]
Examples of Add-PortableType - PowerShell Cmdlet
- This PowerShell Cmdlet configures shared types object for the cache.
Add-PortableType -CacheName demoCache -ConfigPath C:\config.xml
- This command configures shared types object for the cache existing on server 20.200.20.11.
Add-PortableType -CacheName demoCache -ConfigPath C:\config.xml -Server 20.200.20.11
- This command configures shared types object for the cache existing on server 20.200.20.11 and port.
Add-PortableType -CacheName demoCache -ConfigPath C:\config.xml -Server 20.200.20.11 -Port 8250
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 for which data sharing is to be enabled. | - |
-ConfigPath* |
<String> |
Specifies the path of the configuration file where the data types need to be configured. | - |
-Server |
<String> |
Specifies the NCache server name where the NCache Service is running. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-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. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |