2019-10-15 05:28:56 +00:00
|
|
|
<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 enable-statistics="true" />
|
|
|
|
</service>
|
|
|
|
|
2019-11-18 05:19:02 +00:00
|
|
|
<cache alias="userTokenCache">
|
2019-10-15 05:28:56 +00:00
|
|
|
<key-type>java.lang.String</key-type>
|
2019-11-18 05:19:02 +00:00
|
|
|
<value-type>org.ros.chatto.model.UserToken</value-type>
|
2019-10-15 05:28:56 +00:00
|
|
|
<expiry>
|
2019-11-19 07:04:45 +00:00
|
|
|
<ttl unit="seconds">60</ttl>
|
2019-10-15 05:28:56 +00:00
|
|
|
</expiry>
|
|
|
|
<listeners>
|
|
|
|
<listener>
|
|
|
|
<class>org.ros.chatto.config.CustomCacheEventLogger</class>
|
|
|
|
<event-firing-mode>ASYNCHRONOUS</event-firing-mode>
|
|
|
|
<event-ordering-mode>UNORDERED</event-ordering-mode>
|
|
|
|
<events-to-fire-on>CREATED</events-to-fire-on>
|
|
|
|
<events-to-fire-on>UPDATED</events-to-fire-on>
|
|
|
|
<events-to-fire-on>EXPIRED</events-to-fire-on>
|
|
|
|
<events-to-fire-on>REMOVED</events-to-fire-on>
|
|
|
|
<events-to-fire-on>EVICTED</events-to-fire-on>
|
|
|
|
</listener>
|
|
|
|
</listeners>
|
|
|
|
<resources>
|
|
|
|
<heap unit="entries">2000</heap>
|
|
|
|
<offheap unit="MB">100</offheap>
|
|
|
|
</resources>
|
|
|
|
</cache>
|
|
|
|
|
|
|
|
<!-- <cache alias="user"
|
|
|
|
maxEntriesLocalHeap="10000"
|
|
|
|
maxEntriesLocalDisk="1000"
|
|
|
|
eternal="false"
|
|
|
|
diskSpoolBufferSizeMB="20"
|
|
|
|
timeToIdleSeconds="300" timeToLiveSeconds="600"
|
|
|
|
memoryStoreEvictionPolicy="LFU"
|
|
|
|
transactionalMode="off">
|
|
|
|
<persistence strategy="localTempSwap" />
|
|
|
|
</cache> -->
|
|
|
|
|
|
|
|
</config>
|