what is the equivalent xml tag for specifying disk path in ehcache 3.x version
Asked Answered
A

2

6

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.

Amber answered 22/3, 2019 at 6:57 Comment(0)
N
4

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

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

Navigation answered 15/9, 2020 at 10:45 Comment(0)
A
2

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

Amber answered 27/3, 2019 at 16:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.