Exemple #1
0
        public virtual CacheEntry[] GetCacheEntries()
        {
            // not sure it has to be Concurrent
            var result = new ConcurrentBag <CacheEntry>();

            _byteCache.AddToBag(result);
            _shortCache.AddToBag(result);
            _intCache.AddToBag(result);
            _floatCache.AddToBag(result);
            _longCache.AddToBag(result);
            _doubleCache.AddToBag(result);
            _stringCache.AddToBag(result);
            _stringIndexCache.AddToBag(result);

            return(result.ToArray());
        }