springboot使用cache很簡單. 但是,這麼簡單的情況下,我想給緩存的數據加個時間期限.
簡單說, 就是用ehcache
reffer: https://stackoverflow.com/questions/27968157/expiry-time-cacheable-spring-boot/38261593
Note:
1. ehcache是local cache, 數據保存在jvm中.
話說, 有篇blog被瀏覽了1k, 居然沒有一個贊, 心涼...
springboot使用cache很簡單. 但是,這麼簡單的情況下,我想給緩存的數據加個時間期限.
簡單說, 就是用ehcache
reffer: https://stackoverflow.com/questions/27968157/expiry-time-cacheable-spring-boot/38261593
Note:
1. ehcache是local cache, 數據保存在jvm中.
話說, 有篇blog被瀏覽了1k, 居然沒有一個贊, 心涼...