public void AddRead(SeqRead _read) { if (Reads == null) { Reads = new List <SeqRead> (); } MainData.LoadedSeqs++; lock (Reads) { Reads.Add(_read); } }
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; }