public SessionNodeLocatorImpl() { _masterKeys = new Dictionary<uint, IMemcachedNode>(new UIntEqualityComparer()); _keyToServer = new Dictionary<uint, IMemcachedNode>(new UIntEqualityComparer()); _keyToBackup = new Dictionary<uint, IMemcachedNode>(new UIntEqualityComparer()); _allServers = new List<IMemcachedNode>(); _serverAccessLock = new ReaderWriterLockSlim(); _sessionKeyFormat = new SessionKeyFormat(); }
private SessionCacheWithBackup() { _memcachedClientSection = ConfigurationManager.GetSection(DefaultConfigSection) as MemcachedClientSection; _locatorImpl = new SessionNodeLocatorImpl(); _sessionKeyFormat = new SessionKeyFormat(); }