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
14 lines
No EOL
333 B
C#
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);
|
|
}
|
|
} |