Beispiel #1
0
 protected virtual void OnDispose()
 {
     lock (m_SyncRoot)
     {
         m_Parent = null;
         Clear();
     }
 }
Beispiel #2
0
 protected RedisMemDb(RedisPartitionedList <T> items)
 {
     if (items != null)
     {
         items.Sort();
     }
     m_Items = items ?? new RedisPartitionedList <T>(8);
 }
Beispiel #3
0
            internal PartitionedListEnumerator(RedisPartitionedList <T> list)
            {
                m_List    = list;
                m_Buckets = m_List.m_Buckets;

                m_CurrItem    = 0;
                m_CurrBucket  = -1;
                m_BucketCount = m_Buckets.Count;

                m_Version = m_List.m_Version;
                m_Current = default(T);
            }
Beispiel #4
0
 public Bucket(RedisPartitionedList <T> parent, int capacity = -1)
     : base(capacity < 0 ? 0 : capacity)
 {
     m_Parent = parent;
 }
Beispiel #5
0
 public RedisMemDb(int capacity = -1)
 {
     m_Items = new RedisPartitionedList <T>(Math.Max(8, capacity));
 }