/
infinispan.xml
38 lines (30 loc) · 1.54 KB
/
infinispan.xml
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
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd"
xmlns="urn:infinispan:config:5.2">
<global>
<globalJmxStatistics enabled="false" allowDuplicateDomains="true"/>
</global>
<default>
<expiration wakeUpInterval="-1" />
<unsafe unreliableReturnValues="true" />
</default>
<namedCache name="FedoraRepository">
<eviction maxEntries="500" strategy="LIRS" threadPolicy="PIGGYBACK"/>
<transaction
transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
transactionMode="TRANSACTIONAL" lockingMode="PESSIMISTIC"/>
<!-- Define the cache loaders (i.e., cache stores). Passivation is false
because we want *all* data to be persisted, not just what doesn't fit
into memory. Shared is false because there are no other caches sharing
this file store. We set preload to false for lazy loading; may be
improved by preloading and configuring eviction. We can have multiple
cache loaders, which get chained. But we'll define just one. -->
<loaders passivation="false" shared="false" preload="false">
<leveldbStore xmlns="urn:infinispan:config:leveldb:5.2"
fetchPersistentState="true"
location="${fcrepo.ispn.repo.CacheDirPath:target}/data"
expiredLocation="${fcrepo.ispn.repo.CacheDirPath:target}/expired">
</leveldbStore>
</loaders>
</namedCache>
</infinispan>