public async Task <CustomerBasket> GetBasketAsync(string basketId) { var data = await _redis.GetKeyAsync(basketId); return(data.IsNullOrEmpty ? null : JsonSerializer.Deserialize <CustomerBasket>(data)); }
public async Task <CustomerBasket> GetBasketAsync(string basketId) { var data = await _redis.GetKeyAsync(basketId); return(data.IsNullOrEmpty ? null : JsonSerializer.Deserialize <CustomerBasket>(data)); }