コード例 #1
0
 public override void RemoveBucket(int bucket)
 {
     if (Context.NCacheLog.IsInfoEnabled)
     {
         Context.NCacheLog.Info("HashedCache.RemoveBucket", "removing bucket :" + bucket);
     }
     //Remove from stats
     LocalBuckets.Remove(bucket);
     //Remove actual data of the bucket
     RemoveBucketData(bucket);
     //remove operation logger for the bucket from log table if any exists.
     RemoveFromLogTbl(bucket);
 }
コード例 #2
0
        public override void UpdateLocalBuckets(ArrayList bucketIds)
        {
            IEnumerator ie = bucketIds.GetEnumerator();

            while (ie.MoveNext())
            {
                if (LocalBuckets == null)
                {
                    LocalBuckets = new Hashtable();
                }

                if (!LocalBuckets.Contains(ie.Current))
                {
                    LocalBuckets[ie.Current] = new BucketStatistics();
                }
            }
        }