예제 #1
0
        public List <Products> GetAllProducts()
        {
            RedisKeyParameters redisObj    = new RedisKeyParameters();
            string             allProducts = RedisCacheManager.GetRedisKey("ProductKey", redisObj);

            return(RedisCacheManager.GetHashAllValues <Products>(allProducts));
        }
예제 #2
0
        public List <BidDetails> GetAllRedisBid()
        {
            RedisKeyParameters redisObj   = new RedisKeyParameters();
            string             bidAllHash = RedisCacheManager.GetRedisKey("AllBidHashKey", redisObj);

            return(RedisCacheManager.GetHashAllValues <BidDetails>(bidAllHash));
        }