Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. compile 'org.grails.plugins:cache-ehcache:3.0.0.M1'
  2.  
  3. <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">
  4. <persistence directory='/var/folders/x3/gs0rdtkn79s_5gc98d_0d4w0002yjd/T/myApp/ehcache'/>
  5.  
  6. <cache-template name="default">
  7. <key-type>java.lang.Object</key-type>
  8. <value-type>java.lang.Object</value-type>
  9. <heap unit="entries">1000</heap>
  10. </cache-template>
  11.  
  12.  
  13. <cache alias='myCacheName' uses-template='default'>
  14. <key-type>java.lang.String</key-type>
  15. <value-type>java.util.ArrayList</value-type>
  16. <expiry><ttl unit='hours'>2</ttl></expiry>
  17. <resources>
  18. <heap unit='entries'>1</heap>
  19. <disk unit='MB' persistent='true'>50</disk></resources>
  20. </cache>
  21. </config>
  22.  
  23. /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