Örnek
Şöyle yaparız
@Beanpublic RedisCacheManagerBuilderCustomizer redisCacheManagerBuilderCustomizer() {return builder -> builder.withCacheConfiguration(“AccountCache",RedisCacheConfiguration.defaultCacheConfig().entryTtl(Duration.ofMinutes(60))).withCacheConfiguration(“ProductCache",RedisCacheConfiguration.defaultCacheConfig().entryTtl(Duration.ofMinutes(120)));}
Hiç yorum yok:
Yorum Gönder