commit 5eb810cfd90141ce91557d1a949b5114f5234206 Author: hoelee Date: Wed Oct 14 08:08:00 2020 +0800 feat(java-cache): add CacheConfig.java (1/2) diff --git a/platform/java-cache/src/main/java/com/hoelee/platform/cache/CacheConfig.java b/platform/java-cache/src/main/java/com/hoelee/platform/cache/CacheConfig.java new file mode 100644 index 00000000..086212e9 --- /dev/null +++ b/platform/java-cache/src/main/java/com/hoelee/platform/cache/CacheConfig.java @@ -0,0 +1,21 @@ +package com.hoelee.platform.cache; + +import com.github.benmanes.caffeine.cache.Caffeine; +import org.springframework.cache.CacheManager; +import org.springframework.cache.annotation.EnableCaching; +import org.springframework.cache.caffeine.CaffeineCacheManager; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * @version v2, 2024-10-29 10:05:00PM + * @author hoelee + * Learning note: a bounded local cache improves hot-read latency while its statistics make the benefit observable. + */ +@Configuration +@EnableCaching +public class CacheConfig { + + @Bean +} +