view flys-artifacts/doc/conf/cache.xml @ 1749:f7d890f4855f

Added Service Service to lookup the Nth nearest neighbors for a set of given cross section ids and kms. flys-artifacts/trunk@3049 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 20 Oct 2011 17:14:24 +0000
parents fb4fb1c67c35
children f572536af56c
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<ehcache>

    <diskStore path="java.io.tmpdir"/>

    <defaultCache
            maxElementsInMemory="1000"
            eternal="false"
            timeToIdleSeconds="120"
            timeToLiveSeconds="3600"
            overflowToDisk="true"
            maxElementsOnDisk="100000"
            diskPersistent="false"
            diskExpiryThreadIntervalSeconds="120"
            memoryStoreEvictionPolicy="LRU"
            />

    <!-- This one is used for the WST value tables -->

    <cache name="wst-value-table"
           maxElementsInMemory="20"
           maxElementsOnDisk="100"
           eternal="false"
           timeToIdleSeconds="360"
           overflowToDisk="true"
           timeToLiveSeconds="14400"
           diskPersistent="true"
           memoryStoreEvictionPolicy="LRU"
           />

    <!-- This one is used to cache the distance infos per river as Documents -->
    <cache name="service-distanceinfo"
           maxElementsInMemory="20"
           eternal="false"
           timeToIdleSeconds="360"
           timeToLiveSeconds="86400"
           memoryStoreEvictionPolicy="LFU"
           />

    <!-- This one is used to cache the distance infos per river as Lists -->
    <cache name="annotations"
           maxElementsInMemory="2000"
           eternal="false"
           timeToIdleSeconds="360"
           timeToLiveSeconds="86400"
           memoryStoreEvictionPolicy="LFU"
           />

    <!-- This one is used to cache the computed values.-->
    <cache name="computed.values"
           maxElementsInMemory="200"
           eternal="false"
           timeToLiveSeconds="172800"
           overflowToDisk="true"
           diskPersistent="true"
           memoryStoreEvictionPolicy="LRU"
           />

    <!-- This one is used to cache the non-computed wst-values.-->
    <cache name="wst-value-table-static"
           maxElementsInMemory="200"
           eternal="false"
           timeToLiveSeconds="172800"
           overflowToDisk="true"
           diskPersistent="true"
           memoryStoreEvictionPolicy="LRU"
           />

    <!-- This one is used for the SQL statements used by the static datacage -->
    <cache name="datacage.db"
           maxElementsInMemory="2000"
           eternal="false"
           timeToLiveSeconds="7200"
           memoryStoreEvictionPolicy="LFU"
           />

    <!-- This one is used for the cross section next neighbor lookup -->
    <cache name="cross-section-kms"
           maxElementsInMemory="50"
           eternal="false"
           timeToLiveSeconds="7200"
           memoryStoreEvictionPolicy="LRU"
           />
</ehcache>

http://dive4elements.wald.intevation.org