Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- compile 'org.grails.plugins:cache-ehcache:3.0.0.M1'
- <config xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://www.ehcache.org/v3' xsi:schemaLocation="http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.1.xsd">
- <persistence directory='/var/folders/x3/gs0rdtkn79s_5gc98d_0d4w0002yjd/T/myApp/ehcache'/>
- <cache-template name="default">
- <key-type>java.lang.Object</key-type>
- <value-type>java.lang.Object</value-type>
- <heap unit="entries">1000</heap>
- </cache-template>
- <cache alias='myCacheName' uses-template='default'>
- <key-type>java.lang.String</key-type>
- <value-type>java.util.ArrayList</value-type>
- <expiry><ttl unit='hours'>2</ttl></expiry>
- <resources>
- <heap unit='entries'>1</heap>
- <disk unit='MB' persistent='true'>50</disk></resources>
- </cache>
- </config>
- /private/var/folders/x3/gs0rdtkn79s_5gc98d_0d4w0002yjd/T/myApp/ehcache/myCacheName_863f4553eb5da54a98fff5c3f33a6a863225f6b8/offheap-disk-store/ehcache-disk-store.data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement