Caching.FIFOCache.FIFOCache C# (CSharp) Метод

FIFOCache() публичный Метод

Initialize the cache.
public FIFOCache ( int capacity, int evictCount, bool debug ) : System
capacity int Maximum number of entries.
evictCount int Number to evict when capacity is reached.
debug bool Enable or disable console debugging.
Результат System
        public FIFOCache(int capacity, int evictCount, bool debug)
        {
            Capacity = capacity;
            EvictCount = evictCount;
            Debug = debug;
            Cache = new List<Tuple<string, object, DateTime>>();

            if (EvictCount > Capacity)
            {
                throw new ArgumentException("Evict count must be less than or equal to capacity.");
            }
        }