Invalidate Cache based on other Operations
It would be great if a cached operations could be invalidated based on another operation by default.
GET: /products is cached with a long duration and is only invalidated by
Another way could be to invalidated based on HTTP verb. Eg invalidate all caches in api when a POST/PUT Api is called
Robert de Veen commented
Alternative is to store/get a value in cache by key on the GET methods and to remove value from cache by key on the POST method.
What is the alternative here?