123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- using System;
- namespace CB.Cache.MemCached
- {
-
-
-
- public class MemCachedConfigInfo
- {
-
-
-
- public string[] ServerList { get; set; }
- public string PoolName
- {
- set { _poolname = value; }
- get { return string.IsNullOrEmpty(_poolname) ? "Sam.CB.Cache.MemCahed" : _poolname; }
- }
- private string _poolname;
-
-
-
- public int InitConnections
- {
- get { return _initconnections > 0 ? _initconnections : 3; }
- set { _initconnections = value; }
- }
- private int _initconnections;
-
-
-
- public int MinConnections
- {
- get { return _minconnection > 0 ? _minconnection : 3; }
- set { _minconnection = value; }
- }
- private int _minconnection;
-
-
-
- public int MaxConnections
- {
- get { return _maxconnections > 0 ? _maxconnections : 5; }
- set { _maxconnections = value; }
- }
- private int _maxconnections;
-
-
-
- public int SocketConnectTimeout
- {
- get { return _socketconnecttimeout > 1000 ? _socketconnecttimeout : 1000; }
- set { _socketconnecttimeout = value; }
- }
- private int _socketconnecttimeout;
-
-
-
- public int SocketTimeout
- {
- get { return _sockettimeout > 1000 ? _sockettimeout : 3000; }
- set { _sockettimeout = value; }
- }
- private int _sockettimeout;
-
-
-
- public int MaintenanceSleep
- {
- get { return _maintenancesleep > 0 ? _maintenancesleep : 30; }
- set { _maintenancesleep = value; }
- }
- private int _maintenancesleep;
-
-
-
- public bool FailOver
- {
- get { return _failover; }
- set { _failover = value; }
- }
- private bool _failover;
-
-
-
- public bool Nagle
- {
- get { return _nagle; }
- set { _nagle = value; }
- }
- private bool _nagle;
- }
- }
|