<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Copyright 2010-2014 Ning, Inc.
  ~ Copyright 2014-2017 Groupon, Inc
  ~ Copyright 2014-2017 The Billing Project, LLC
  ~
  ~ The Billing Project licenses this file to you under the Apache License, version 2.0
  ~ (the "License"); you may not use this file except in compliance with the
  ~ License.  You may obtain a copy of the License at:
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
  ~ License for the specific language governing permissions and limitations
  ~ under the License.
  -->

<ehcache:config xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
                xmlns:ehcache='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">
    <ehcache:service>
        <jsr107:defaults default-template="defaultCacheConfiguration" enable-management="true" enable-statistics="true"/>
    </ehcache:service>

    <ehcache:cache-template name="defaultCacheConfiguration">
        <ehcache:expiry>
            <ehcache:none/>
        </ehcache:expiry>

        <ehcache:resources>
            <!-- The maximal number of entries to be held in the Cache, prior to eviction starting -->
            <ehcache:heap unit="entries">100000</ehcache:heap>
        </ehcache:resources>
    </ehcache:cache-template>
</ehcache:config>

