我要用OSCache缓存10w条数据在硬盘中,可是OSCache在硬盘中缓存了16000多条数据后就不再缓存后面的数据了。
不知道是什么原因,大家帮我下啊。
oscache.properties中的属性cache.unlimited.disk和cache.capacity都是默认的
cache.unlimited.disk
Indicates whether the disk cache should be treated as unlimited or not. The default value is false. In this case, the disk cache capacity will be equal to the memory cache capacity set by cache.capacity.
你用的是默认false的当然不行了 16000多条应该是你的cache.capacity限制的.