public void MemoryCache_Categories()
 {
     using (var tableDependency = new SqlTableDependency <Category>(connectionString, "Categories", "Northwind"))
     {
         using (var manager = new NorthwindCacheManager <Category>(new GeneralInMemoryCache <Category>(), tableDependency))
         {
             CacheRunner <Category>(manager);
         }
     }
 }
        private void Redis_CacheCleanup()
        {
            var employeeManager = new NorthwindCacheManager <Employee>(new GeneralRedisCache <Employee>(redisHostname));

            employeeManager.DeleteAll();
            var customerManager = new NorthwindCacheManager <Customer>(new GeneralRedisCache <Customer>(redisHostname));

            customerManager.DeleteAll();
            var orderManager = new NorthwindCacheManager <Order>(new GeneralRedisCache <Order>(redisHostname));

            orderManager.DeleteAll();
            var productManager = new NorthwindCacheManager <Product>(new GeneralRedisCache <Product>(redisHostname));

            productManager.DeleteAll();
            var categoryManager = new NorthwindCacheManager <Category>(new GeneralRedisCache <Category>(redisHostname));

            categoryManager.DeleteAll();
        }
        public void RedisCache_Employees()
        {
            var manager = new NorthwindCacheManager <Employee>(new GeneralRedisCache <Employee>(redisHostname));

            CacheRunner(manager);
        }
        public void RedisCache_Customers()
        {
            var manager = new NorthwindCacheManager <Customer>(new GeneralRedisCache <Customer>(redisHostname));

            CacheRunner(manager);
        }
        public void RedisCache_Products()
        {
            var manager = new NorthwindCacheManager <Product>(new GeneralRedisCache <Product>(redisHostname));

            CacheRunner(manager);
        }
        public void RedisCache_Categories()
        {
            var manager = new NorthwindCacheManager <Category>(new GeneralRedisCache <Category>(redisHostname), DateTime.UtcNow.AddSeconds(10));

            CacheRunner(manager);
        }
        public void MemoryCache_Employee()
        {
            var manager = new NorthwindCacheManager <Employee>(new GeneralInMemoryCache <Employee>());

            CacheRunner(manager);
        }
        public void MemoryCache_Orders()
        {
            var manager = new NorthwindCacheManager <Order>(new GeneralInMemoryCache <Order>());

            CacheRunner(manager);
        }
        public void MemoryCache_Products()
        {
            var manager = new NorthwindCacheManager <Product>(new GeneralInMemoryCache <Product>(), DateTime.UtcNow.AddSeconds(10));

            CacheRunner(manager);
        }