ehcache 3.x 版本需要将缓存保存到磁盘时如何指定磁盘路径。可以在ehcache 2.x 版本中指定<diskStore path="java.io.tmpdir/ehcache/" />
,但我在 3.x 版本中找不到任何等效的 xml 标记。
最佳答案
经过长时间的分析,我终于发现 3.x 中等效的 xml 标签是 <persistence directory="java.io.tmpdir/ehcache/" />
关于xml-configuration - 在 ehcache 3.x 版本中用于指定磁盘路径的等效 xml 标记是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55294384/