Class CacheConnection
Instance of this class can be used to define the parameters to establish a connection with the cache.
Inheritance
Assembly: Alachisoft.NCache.Client.dll
Syntax
public class CacheConnection : ICloneable
Constructors
CacheConnection(String, Int32)
Initializes new instance of CacheConnection.
Declaration
public CacheConnection(string server = null, int port = 8250)
Parameters
Type | Name | Description |
---|---|---|
System.String | server | Specifies the name of server on which the cache is running. |
System.Int32 | port | Specifies the port of server on which the cache is running. |
Properties
Port
Port of server on which the cache is running.
Declaration
public int Port { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Specifies the port of server on which the cache is running. |
Server
Name of server on which the cache is running.
Declaration
public string Server { get; }
Property Value
Type | Description |
---|---|
System.String | Specifies the name of server on which the cache is running. |
UserCredentials
Gets/Sets Credentials of the cache for authorization.
Declaration
public Credentials UserCredentials { get; set; }
Property Value
Type | Description |
---|---|
Credentials | This property provides the security parameters for authorization. |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |