我如何知道spring-cache中缓存的当前缓存大小?我想记录缓存大小达到最大值的时间。我找不到能做到这一点的函数。我怎么知道?
发布于 2020-05-07 05:59:04
Spring的缓存抽象不处理低级细节。
您需要使用不同的缓存实现,您可以从这里的https://docs.spring.io/spring-boot/docs/2.1.6.RELEASE/reference/html/boot-features-caching.html#boot-features-caching-provider-simple中看到一堆示例
https://stackoverflow.com/questions/61644952
复制相似问题