Skip to content

Instantly share code, notes, and snippets.

@alexsnaps
Last active August 29, 2015 14:11
Show Gist options
  • Save alexsnaps/1c633aa74c07ae3941c6 to your computer and use it in GitHub Desktop.
Save alexsnaps/1c633aa74c07ae3941c6 to your computer and use it in GitHub Desktop.
Ehcache JSR-107 cache-template module
<config
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://www.ehcache.org/v3'
xmlns:jsr107='http://www.ehcache.org/v3/jsr107'>
<service>
<jsr107:defaults default-template="tinyCache">
<jsr107:cache name="users" template="usersTemplate"/>
</jsr107:defaults>
</service>
<cache-template name="usersTemplate">
<capacity>5000</capacity>
</cache-template>
<cache-template name="tinyCache">
<capacity>200</capacity>
</cache-template>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment