forked from DevFW-CICD/spring-petclinic
added @Cacheable support with ehcache
This commit is contained in:
parent
4ccf1eaa05
commit
0c09ec3bd1
10 changed files with 479 additions and 33 deletions
17
src/main/resources/ehcache.xml
Normal file
17
src/main/resources/ehcache.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="ehcache.xsd"
|
||||
updateCheck="false">
|
||||
<diskStore path="java.io.tmpdir"/>
|
||||
|
||||
<!-- objects are evicted from the cache every 60 seconds -->
|
||||
<cache name="vets"
|
||||
timeToLiveSeconds="60"
|
||||
maxElementsInMemory="100"
|
||||
eternal="false"
|
||||
overflowToDisk="false"
|
||||
maxElementsOnDisk="10000000"
|
||||
diskPersistent="false"
|
||||
diskExpiryThreadIntervalSeconds="1"
|
||||
memoryStoreEvictionPolicy="LRU" />
|
||||
|
||||
</ehcache>
|
||||
Loading…
Add table
Add a link
Reference in a new issue