-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ehcache for hibernate L2 caching
- Loading branch information
Showing
8 changed files
with
135 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
fixture-data/src/main/resources/META-INF/ehcache/ehcache.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ehcache dynamicConfig="true" | ||
monitoring="autodetect" | ||
updateCheck="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd"> | ||
|
||
<diskStore path="java.io.tmpdir"/> | ||
|
||
<defaultCache diskExpiryThreadIntervalSeconds="120" | ||
diskPersistent="false" | ||
eternal="false" | ||
maxElementsInMemory="16384" | ||
maxElementsOnDisk="1048576" | ||
memoryStoreEvictionPolicy="LRU" | ||
overflowToDisk="true" | ||
timeToIdleSeconds="120" | ||
timeToLiveSeconds="120"/> | ||
|
||
<cache name="io.fixture.data.model.Group" | ||
diskPersistent="false" | ||
eternal="false" | ||
maxElementsInMemory="16384" | ||
memoryStoreEvictionPolicy="LRU" | ||
overflowToDisk="false" | ||
timeToIdleSeconds="240" | ||
timeToLiveSeconds="480"/> | ||
|
||
<cache name="io.fixture.data.model.PersistentLogin" | ||
diskPersistent="false" | ||
eternal="false" | ||
maxElementsInMemory="16384" | ||
memoryStoreEvictionPolicy="LRU" | ||
overflowToDisk="false" | ||
statistics="true" | ||
timeToIdleSeconds="240" | ||
timeToLiveSeconds="480"/> | ||
|
||
<cache name="org.hibernate.cache.internal.StandardQueryCache" | ||
diskPersistent="false" | ||
eternal="false" | ||
maxElementsInMemory="16384" | ||
memoryStoreEvictionPolicy="LRU" | ||
overflowToDisk="false" | ||
statistics="true" | ||
timeToIdleSeconds="240" | ||
timeToLiveSeconds="480"/> | ||
|
||
<cache name="org.hibernate.cache.spi.UpdateTimestampsCache" | ||
diskPersistent="false" | ||
eternal="false" | ||
maxElementsInMemory="16384" | ||
memoryStoreEvictionPolicy="LRU" | ||
overflowToDisk="false" | ||
statistics="true" | ||
timeToIdleSeconds="240" | ||
timeToLiveSeconds="480"/> | ||
|
||
<cache name="io.fixture.data.model.User" | ||
diskPersistent="false" | ||
eternal="false" | ||
maxElementsInMemory="16384" | ||
memoryStoreEvictionPolicy="LRU" | ||
overflowToDisk="false" | ||
timeToIdleSeconds="240" | ||
timeToLiveSeconds="480"/> | ||
|
||
<cache name="io.fixture.data.model.UserProfile" | ||
diskPersistent="false" | ||
eternal="false" | ||
maxElementsInMemory="16384" | ||
memoryStoreEvictionPolicy="LRU" | ||
overflowToDisk="false" | ||
statistics="true" | ||
timeToIdleSeconds="240" | ||
timeToLiveSeconds="480"/> | ||
|
||
</ehcache> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters