Instance of this class can be used to define the parameters at the time of cache initialization.
public class CacheInitParams : ICloneable
You can create an instance of CacheInitParams class and use it while initialization of cache."/>
CacheInitParams cacheParam = new CacheInitParams(); SecurityParams userCredentials = new SecurityParams(UserId, Password); cacheParam.PrimaryUserCredentials = userCredentials; Cache cache = Web.Caching.NCache.InitializeCache(Name, cacheParam);
If different client applications are connected to server and because of any issue which results in connection failure with server, after the client again establishes connection “AppName” is used to identify these different client applications. Data type is string. Its optional.If value is not set it takes the value of the process id.
Gets/Sets the IP for the client to be binded with
Gets/Sets Enumeration to specify how the Client cache is synchronized with the cluster caches through events.
Clients operation timeout specified in seconds. Clients wait for the response from the server for this time. If the response is not received within this time, the operation is not successful. Based on the network conditions, OperationTimeout value can be adjusted. The default value is 90 seconds.
If client application sends request to server for any operation and a response is not received, then the number of retries it will make until it gets response is defined here.
In case if client app doesn’t get response against some operation call on server, the command retry interval defines the waiting period before the next attempt to send the operation the server is made. Type integer which defines seconds.
Number of tries to re-establish a broken connection between client and server.
Client's connection timeout specified in seconds.
Gets/Sets ID of DefaultReadThruProvider
Gets/Sets ID of DefaultWriteThruProvider
Enables client logs.
Sets the keep alive flag
Gets or Sets the KeepAliveInterval, which will be in effect if the EnabledKeepAlive is set 'true' or is specified 'true' from the client configuration. Note: If the value to be set is lesser than 1 or is greater than 7200 (2 hours in seconds), it will resort back 30 seconds internally.
When this flag is set, client tries to connect to the optimum server in terms of number of connected clients. This way almost equal number of clients are connected to every node in the clustered cache and no single node is overburdened.
Sets the log level either as Info, Error or Debug
Gets/Sets the cache mode (inproc/outproc)
Gets/Sets the port on which the clients will connect to a server.
Gets/Sets the user-id and password for the primary cache user. This information is required when the security is enabled. If primary user's authentication fails, SecondaryUserCredentials are tried.
The time after which client will try to reconnect to the server.
Time in seconds to wait between two connection retries.
Gets/Sets the user-id and password for the secondary cache user. This information is required when the security is enabled.
Gets/Sets the server clients will connect to.
Gets/Sets List of servers provided by the user
Creates Clone for deep copy of the initParam