protected virtual void InitializeClient(string name, System.Collections.Specialized.NameValueCollection config)
 {
     this.client = ProviderHelper.GetClient(name, config, () => (IMemcachedClientFactory) new MembaseClientFactory());
 }
        IMemcachedClient IMemcachedClientFactory.Create(string name, NameValueCollection config)
        {
            var section = ProviderHelper.GetAndRemove(config, "section", false);

            return(String.IsNullOrEmpty(section) ? new MemcachedClient() : new MemcachedClient(section));
        }
 public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config)
 {
     base.Initialize(name, config);
     InitializeClient(name, config);
     ProviderHelper.CheckForUnknownAttributes(config);
 }