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

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

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