spring-cloud/spring-cloud-gateway

Add customization options to ResponseCacheGatewayFilter

Open

#3,429 创建于 2024年6月12日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)Java (3,204 fork)batch import
enhancementhelp wanted

仓库指标

Star
 (4,284 star)
PR 合并指标
 (平均合并 1天 21小时) (30 天内合并 18 个 PR)

描述

Is your feature request related to a problem? Please describe. I have a specfic kind of caching logic that should not use the header values. In the current implementation of the CacheKeyGenerator there is a static list of key generators that I cannot modify.

Describe the solution you'd like Add an api or spring mechanism to change the key generator.

Describe alternatives you've considered I tried to modify that static field at runtime but this approach is really hacky.

Additional context I have not used spring for a long time. Maybe there is already a way to change the CacheKeyGenerator or ResponseCache implementation.

贡献者指南