private SessionCacheWithBackup() { _memcachedClientSection = ConfigurationManager.GetSection(DefaultConfigSection) as MemcachedClientSection; _locatorImpl = new SessionNodeLocatorImpl(); _sessionKeyFormat = new SessionKeyFormat(); }
internal void ResetMemcachedClient(string memcachedConfigSection) { if (_client != null) { _client.Dispose(); _client = null; } _locatorImpl = new SessionNodeLocatorImpl(); _memcachedClientSection = ConfigurationManager.GetSection(memcachedConfigSection) as MemcachedClientSection; InitializeClient(); }
internal void ResetMemcachedClient(IMemcachedClient newClient, SessionNodeLocatorImpl newLocator) { if (_client != null) _client.Dispose(); _client = newClient; _locatorImpl = newLocator ?? _locatorImpl; }
internal void ResetLocator() { _locatorImpl = new SessionNodeLocatorImpl(); }