microservices-demo/src/cartservice/interfaces/ICartStore.cs
Simon Zeltser ca6e6647ef Refactored the cart service to add more telemetry
1. Added more telemetry around starting redis cache
2. Now if you don't specify redis cache address via command line
or environment variable, it will run with local cart (no redis).
This is useful for debugging purposes
2018-06-28 17:12:33 -07:00

14 lines
No EOL
333 B
C#

using System.Threading.Tasks;
namespace cartservice.interfaces
{
internal interface ICartStore
{
Task InitializeAsync();
Task AddItemAsync(string userId, string productId, int quantity);
Task EmptyCartAsync(string userId);
Task<Hipstershop.Cart> GetCartAsync(string userId);
}
}