spring boot cache redis 簡單理解自定義 KeyGenerator

簡單理解自定義 KeyGeneratorredis 通常狀況咱們在 spring boot 中會使用 redis 做爲緩存 但咱們是須要自定義 cache key 的生成方式 1.爲何不使用 spring 默認的 生成策略? 先看看源碼:spring public class DefaultKeyGenerator implements KeyGenerator { public
相關文章
相關標籤/搜索