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.
Asked
Active
Viewed 751 times
5

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

Manikandaprabu.G
- 91
- 5
1
You have to reference "java.io.tmpdir" as a variable:
<persistence directory="${java.io.tmpdir}/ehcache/" />

dsavickas
- 1,360
- 1
- 9
- 12