Install-NCacheModule - PowerShell Cmdlet
This PowerShell Cmdlet enables the user to deploy provider assemblies from the specified assembly path to the deployment folder named 'deploy' in NCache installed directory.
Note
This feature is only available in NCache Enterprise and Professional.
Note
Please note that when using the NCache .NET Edition, you will require .dll libraries instead of .jar assemblies for this PowerShell Cmdlet.
Install-NCacheModule -AssemblyPath [-CacheName] [-NoLogo] [-Port] [-Server] [-Credentials] [-WriteToServiceConfig]
Examples of Install-NCacheModule - PowerShell Cmdlet
- This PowerShell Cmdlet deploys the assembly for demoCache.
Install-NCacheModule -CacheName demoCache -AssemblyPath C:\Provider.jar
- This command deploys the assembly for a cache named demoCache on server 20.200.20.11.
Install-NCacheModule -CacheName demoCache -AssemblyPath C:\Provider.jar –Server 20.200.20.11
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 assembly deployment. | - |
-AssemblyPath* |
<String> |
Specifies the path of the assembly to be imported. | - |
-Server |
<String> |
Specifies the NCache server name or ip as per user requirement. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-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. | - |
-WriteToServiceConfig |
<SwitchParameter> |
Specifies whether to write to service configurations. | - |