public List <Products> GetAllProducts() { RedisKeyParameters redisObj = new RedisKeyParameters(); string allProducts = RedisCacheManager.GetRedisKey("ProductKey", redisObj); return(RedisCacheManager.GetHashAllValues <Products>(allProducts)); }
public List <BidDetails> GetAllRedisBid() { RedisKeyParameters redisObj = new RedisKeyParameters(); string bidAllHash = RedisCacheManager.GetRedisKey("AllBidHashKey", redisObj); return(RedisCacheManager.GetHashAllValues <BidDetails>(bidAllHash)); }