added redis integration and command line arguments handling to cart service. Didn't test in the cloud yet
This commit is contained in:
parent
572c02f588
commit
8860d8bfdd
7 changed files with 184 additions and 0 deletions
12
src/cartservice/interfaces/ICartStore.cs
Normal file
12
src/cartservice/interfaces/ICartStore.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System.Threading.Tasks;
|
||||
|
||||
namespace cartservice.interfaces
|
||||
{
|
||||
internal interface ICartStore
|
||||
{
|
||||
Task AddItemAsync(string userId, string productId, int quantity);
|
||||
Task EmptyCartAsync(string userId);
|
||||
|
||||
Task<Hipstershop.Cart> GetCartAsync(string userId);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue