5

How to specify the disk path when the cache need to be saved in disk in ehcache 3.x version.It can be specified in ehcache 2.x version with <diskStore path="java.io.tmpdir/ehcache/" /> ,but i dont find any equivalent xml tag in 3.x version.

2 Answers2

2

After a long analysis finally i found out The equivalent xml tag in 3.x is <persistence directory="java.io.tmpdir/ehcache/" />

1

You have to reference "java.io.tmpdir" as a variable:

<persistence directory="${java.io.tmpdir}/ehcache/" />

dsavickas
  • 1,360
  • 1
  • 9
  • 12