Example #1
0
        public object Any(PopulateRedisWithData request)
        {
            Redis.StoreAll(NorthwindData.Categories);
            Redis.StoreAll(NorthwindData.Customers);
            Redis.StoreAll(NorthwindData.Employees);
            Redis.StoreAll(NorthwindData.Shippers);
            Redis.StoreAll(NorthwindData.Orders);
            Redis.StoreAll(NorthwindData.Products);
            Redis.StoreAll(NorthwindData.OrderDetails);
            //Redis.StoreAll(NorthwindData.CustomerCustomerDemos);
            Redis.StoreAll(NorthwindData.Regions);
            Redis.StoreAll(NorthwindData.Territories);
            Redis.StoreAll(NorthwindData.EmployeeTerritories);

            LoadDifferentKeyTypes(Redis);

            return(new PopulateRedisWithDataResponse());
        }
        public object Any(PopulateRedisWithData request)
        {
            Redis.StoreAll(NorthwindData.Categories);
            Redis.StoreAll(NorthwindData.Customers);
            Redis.StoreAll(NorthwindData.Employees);
            Redis.StoreAll(NorthwindData.Shippers);
            Redis.StoreAll(NorthwindData.Orders);
            Redis.StoreAll(NorthwindData.Products);
            Redis.StoreAll(NorthwindData.OrderDetails);
            //Redis.StoreAll(NorthwindData.CustomerCustomerDemos);
            Redis.StoreAll(NorthwindData.Regions);
            Redis.StoreAll(NorthwindData.Territories);
            Redis.StoreAll(NorthwindData.EmployeeTerritories);

            LoadDifferentKeyTypes(Redis);

            return new PopulateRedisWithDataResponse();
        }
Example #3
0
        public object Any(PopulateRedisWithData request)
        {
            Redis.StoreAll(NorthwindData.Categories);
            Redis.StoreAll(NorthwindData.Customers);
            Redis.StoreAll(NorthwindData.Employees);
            Redis.StoreAll(NorthwindData.Shippers);
            Redis.StoreAll(NorthwindData.Orders);
            Redis.StoreAll(NorthwindData.Products);
            Redis.StoreAll(NorthwindData.OrderDetails);
            Redis.StoreAll(NorthwindData.Regions);
            Redis.StoreAll(NorthwindData.Territories);
            Redis.StoreAll(NorthwindData.EmployeeTerritories);

            LoadBasicStrings(Redis);

            //Just load collections in DB 1
            using (var redisDb1 = new RedisClient(Redis.Host, Redis.Port, db: 1))
            {
                LoadDifferentKeyTypes(redisDb1);
            }

            return(new PopulateRedisWithDataResponse());
        }
        public object Any(PopulateRedisWithData request)
        {
            Redis.StoreAll(NorthwindData.Categories);
            Redis.StoreAll(NorthwindData.Customers);
            Redis.StoreAll(NorthwindData.Employees);
            Redis.StoreAll(NorthwindData.Shippers);
            Redis.StoreAll(NorthwindData.Orders);
            Redis.StoreAll(NorthwindData.Products);
            Redis.StoreAll(NorthwindData.OrderDetails);
            Redis.StoreAll(NorthwindData.Regions);
            Redis.StoreAll(NorthwindData.Territories);
            Redis.StoreAll(NorthwindData.EmployeeTerritories);

            LoadBasicStrings(Redis);

            //Just load collections in DB 1
            using (var redisDb1 = new RedisClient(Redis.Host, Redis.Port, db: 1))
            {
                LoadDifferentKeyTypes(redisDb1);
            }

            return new PopulateRedisWithDataResponse();
        }