AWSSDK.UnitTests.LruCacheTest.GetCache C# (CSharp) Method

GetCache() private method

private GetCache ( int maxItems, int count ) : string>.LruCache
maxItems int
count int
return string>.LruCache
        private LruCache<string, string> GetCache(int maxItems, int count)
        {
            var cache = new LruCache<string, string>(maxItems);
            for (int i = 0; i < count; i++)
            {
                cache.AddOrUpdate("key" + i, "value" + i);
            }
            return cache;
        }