-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalidation cache #5
Conversation
"UpstreamHttpMethod": [ "Delete" ], | ||
"DownstreamPathTemplate": "/api/producsts/{id}", | ||
"UpstreamPathTemplate": "/products/{id}", | ||
"InvalidateCache": ["product:{tenantId}", "product:{tenantId}:{id}"], // 👈 Invalidate cache by tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nebolo by lepšie nazvať to InvalidateCacheTags
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ja som nad tým tiež rozmýšľal. Ale povedal som si, že to tam nedám lebo invalidacia podľa tagov je vlastne štandard v tomto type kešovanie, takže by to tam za mňa bola zbytočná informácia.
@@ -397,6 +415,8 @@ private class Store : IOutputCacheStore | |||
|
|||
public bool WasCallSetAsync { get; private set; } | |||
|
|||
public string EvicedTags { get; private set; } = string.Empty; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Evicted
Cache invalidation
You can invalidate cache entries by tags defined in tag templates.
Automatic by endpoints
Manual