- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache.xml
More file actions
Latest commit
47 lines (41 loc) · 1.82 KB
/
Copy pathcache.xml
File metadata and controls
47 lines (41 loc) · 1.82 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
<?xml version="1.0" encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<beanid="testObjectFactory"class="TestObjectFactory">
<constructor-argref="firstLevelCache"/>
<constructor-argref="employeeFactory"/>
<constructor-argref="employeeFactory"/>
<constructor-argvalue="10000"/>
<constructor-argvalue="4"/>
</bean>
<beanid="firstLevelCache"class="cache.CacheMTImpl">
<constructor-argref="memoryStore"/>
<constructor-argref="LRU"/>
<constructor-argref="serializer"/>
<constructor-argref="secondLevelCache"/>
<constructor-argvalue="100"/>
<constructor-argvalue="10"/>
</bean>
<beanid="memoryStore"class="cache.store.MemoryStore" />
<beanid="LFU"class="cache.algorithm.LFUAlgorithm"/>
<beanid="secondLevelCache"class="cache.CacheMTImpl">
<constructor-argref="fileStore"/>
<constructor-argref="LFU"/>
<constructor-argref="serializer"/>
<constructor-argref="employeeFactory"/>
<constructor-argvalue="1000"/>
<constructor-argvalue="100"/>
</bean>
<beanid="fileStore"class="cache.store.FileStore">
<constructor-argvalue="cache"/>
<constructor-argref="keyConverter"/>
</bean>
<beanid="keyConverter"class="KeyConverterIntStr"/>
<beanid="LRU"class="cache.algorithm.LRUAlgorithm"/>
<beanid="employeeFactory"class="RandomEmployeeFactory">
<constructor-argvalue="999999999"/>
<constructor-argvalue="10000"/>
</bean>
<beanid="serializer"class="cache.serializer.JavaSerializer"/>
</beans>