seb-server/src/main/resources/config/ehcache.xml

118 lines
4 KiB
XML
Raw Normal View History

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.ehcache.org/v3"
xmlns:jsr107="http://www.ehcache.org/v3/jsr107"
xsi:schemaLocation="
http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.0.xsd
http://www.ehcache.org/v3/jsr107 http://www.ehcache.org/schema/ehcache-107-ext-3.0.xsd">
<cache alias="RUNNING_EXAM">
<key-type>java.lang.Long</key-type>
<value-type>ch.ethz.seb.sebserver.gbl.model.exam.Exam</value-type>
<expiry>
2021-05-17 09:03:22 +02:00
<ttl unit="hours">24</ttl>
</expiry>
<resources>
<heap unit="entries">100</heap>
</resources>
</cache>
2022-09-05 16:01:30 +02:00
<cache alias="RUNNING_EXAM_CLIENT_GROUP_CACHE">
<key-type>java.lang.Long</key-type>
<value-type>ch.ethz.seb.sebserver.gbl.util.Result</value-type>
<expiry>
<ttl unit="hours">24</ttl>
</expiry>
<resources>
<heap unit="entries">10</heap>
</resources>
</cache>
<cache alias="ACTIVE_CLIENT_CONNECTION">
<key-type>java.lang.String</key-type>
<value-type>ch.ethz.seb.sebserver.webservice.servicelayer.session.impl.ClientConnectionDataInternal</value-type>
<expiry>
2021-05-17 09:03:22 +02:00
<ttl unit="hours">24</ttl>
</expiry>
<resources>
<heap unit="entries">3000</heap>
</resources>
</cache>
<cache alias="SEB_CONFIG_EXAM">
<key-type>java.lang.Long</key-type>
<value-type>ch.ethz.seb.sebserver.webservice.servicelayer.session.impl.InMemorySEBConfig</value-type>
<expiry>
2021-05-17 09:03:22 +02:00
<ttl unit="hours">24</ttl>
</expiry>
<resources>
<heap unit="entries">20</heap>
</resources>
</cache>
<cache alias="CACHE_NAME_PING_RECORD">
<key-type>java.lang.String</key-type>
<value-type>ch.ethz.seb.sebserver.webservice.datalayer.batis.model.ClientEventRecord</value-type>
<expiry>
2021-05-17 09:03:22 +02:00
<ttl unit="hours">24</ttl>
</expiry>
<resources>
<heap unit="entries">2000</heap>
</resources>
</cache>
<cache alias="CONNECTION_TOKENS_CACHE">
<key-type>java.lang.Long</key-type>
<value-type>ch.ethz.seb.sebserver.gbl.util.Result</value-type>
<expiry>
2021-05-17 09:03:22 +02:00
<ttl unit="hours">24</ttl>
</expiry>
<resources>
<heap unit="entries">100</heap>
</resources>
</cache>
<cache alias="ACCESS_TOKEN_CACHE">
2022-01-05 15:22:17 +01:00
<key-type>java.lang.String</key-type>
<value-type>org.springframework.security.oauth2.common.OAuth2AccessToken</value-type>
<expiry>
2022-01-05 15:22:17 +01:00
<ttl unit="hours">1</ttl>
</expiry>
<resources>
<heap unit="entries">100</heap>
</resources>
</cache>
<cache alias="AUTHENTICATION_TOKEN_CACHE">
<key-type>org.springframework.security.oauth2.common.OAuth2AccessToken</key-type>
<value-type>org.springframework.security.oauth2.provider.OAuth2Authentication</value-type>
<expiry>
<ttl unit="hours">1</ttl>
</expiry>
<resources>
<heap unit="entries">100</heap>
</resources>
</cache>
<cache alias="EXAM_CLIENT_DETAILS_CACHE">
<key-type>java.lang.String</key-type>
<value-type>ch.ethz.seb.sebserver.gbl.util.Result</value-type>
<expiry>
2021-05-17 09:03:22 +02:00
<ttl unit="hours">24</ttl>
</expiry>
<resources>
<heap unit="entries">2000</heap>
</resources>
</cache>
<cache alias="QUIZ_DATA_CACHE">
<key-type>java.lang.String</key-type>
<value-type>ch.ethz.seb.sebserver.gbl.model.exam.QuizData</value-type>
<expiry>
<ttl unit="minutes">5</ttl>
</expiry>
<resources>
<heap unit="entries">10000</heap>
</resources>
</cache>
</config>