Example #1
0
 private void Init(RedisClientSection section)
 {
     if (!string.IsNullOrEmpty(section.Cached))
     {
         mCached = new KCached.CacheManager(section.Cached);
     }
     foreach (HostItem item in section.Writes)
     {
         Writes.Add(new RedisHost(item.Host, item.Connections));
     }
     foreach (HostItem item in section.Reads)
     {
         Reads.Add(new RedisHost(item.Host, item.Connections));
     }
     DB = section.DB;
 }