Create a middleware that bridges endpoint cache tags to an external cache.
The middleware reads endpoint .cacheTag() / .clearsCacheTag() metadata
from client requests and calls invalidateTag() after successful mutating
requests (POST, PUT, PATCH, or DELETE). Dynamic tags invalidate both
the base tag name and the computed key by default.
Create a middleware that bridges endpoint cache tags to an external cache.
The middleware reads endpoint
.cacheTag()/.clearsCacheTag()metadata from client requests and callsinvalidateTag()after successful mutating requests (POST,PUT,PATCH, orDELETE). Dynamic tags invalidate both the base tag name and the computed key by default.