Ejemplo n.º 1
0
        public void RedisCacheProducts()
        {
            var productManager = new ProductsManager(new ProductsRedisCache("localhost"));

            for (var i = 0; i < 10; i++)
            {
                Console.WriteLine(productManager.GetProducts().Count());
                Thread.Sleep(100);
            }
        }
Ejemplo n.º 2
0
        public void MemoryCacheProducts()
        {
            var productManager = new ProductsManager(new ProductsMemoryCache());

            for (var i = 0; i < 10; i++)
            {
                Console.WriteLine(productManager.GetProducts().Count());
                Thread.Sleep(100);
            }
        }