我想知道Guava缓存的默认过期策略.
我的需要是,写一次并多次阅读.缓存永远不会过期.这是Guava的默认行为吗?
我的需要是,写一次并多次阅读.缓存永远不会过期.这是Guava的默认行为吗?
解决方法
假设你在谈论CacheBuilder
@H_403_7@从Google docs
@H_403_7@By default cache instances created by CacheBuilder will not perform any type of eviction.