-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathehcache.xml
More file actions
78 lines (72 loc) · 2.36 KB
/
ehcache.xml
File metadata and controls
78 lines (72 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jsr107="http://www.ehcache.org/v3/jsr107"
xmlns="http://www.ehcache.org/v3"
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">
<!-- 게시글 목록 캐시 (1분) -->
<cache alias="communityList">
<key-type>java.lang.String</key-type>
<value-type>java.lang.Object</value-type>
<expiry>
<ttl unit="minutes">1</ttl>
</expiry>
<resources>
<heap unit="entries">100</heap>
</resources>
</cache>
<!-- 사용자 프로필 캐시 (5분) -->
<cache alias="userProfile">
<key-type>java.lang.Long</key-type>
<value-type>java.lang.Object</value-type>
<expiry>
<ttl unit="minutes">5</ttl>
</expiry>
<resources>
<heap unit="entries">1000</heap>
</resources>
</cache>
<!-- 문제 정보 캐시 (10분) -->
<cache alias="problemInfo">
<key-type>java.lang.Integer</key-type>
<value-type>java.lang.Object</value-type>
<expiry>
<ttl unit="minutes">10</ttl>
</expiry>
<resources>
<heap unit="entries">500</heap>
</resources>
</cache>
<!-- 퀘스트 목록 캐시 (30분) -->
<cache alias="questList">
<key-type>java.lang.String</key-type>
<value-type>java.lang.Object</value-type>
<expiry>
<ttl unit="minutes">30</ttl>
</expiry>
<resources>
<heap unit="entries">10</heap>
</resources>
</cache>
<cache alias="comment">
<key-type>java.lang.Long</key-type>
<value-type>java.lang.Object</value-type>
<expiry>
<ttl unit="minutes">5</ttl>
</expiry>
<resources>
<heap unit="entries">2000</heap>
</resources>
</cache>
<cache alias="babyComment">
<key-type>java.lang.Long</key-type>
<value-type>java.lang.Object</value-type>
<expiry>
<ttl unit="minutes">5</ttl>
</expiry>
<resources>
<heap unit="entries">1000</heap>
</resources>
</cache>
</config>