solo-io / gloo

The Feature-rich, Kubernetes-native, Next-Generation API Gateway Built on Envoy
https://docs.solo.io/
Apache License 2.0
4.08k stars 438 forks source link

Cache: Provide an API for eviction of cache entries used in response caching #6883

Open kcbabo opened 2 years ago

kcbabo commented 2 years ago

Version

1.12.x (beta)

Is your feature request related to a problem? Please describe.

There is currently no way to evict entries from the Gloo Edge response cache other than expiration. We have a use case where an application team wants to invalidate all cached resources when updating their application.

Describe the solution you'd like

Provide an API through which cached responses can be evicted on demand. This API should allow for selectors or labels to be specified to evicted multiple cache entries that correspond to a group (e.g. application).

Describe alternatives you've considered

The only solution today is to dump the entire cache storage, effectively cleaning out all cached responses.

Additional Context

No response

github-actions[bot] commented 4 months ago

This issue has been marked as stale because of no activity in the last 180 days. It will be closed in the next 180 days unless it is tagged "no stalebot" or other activity occurs.