Skip to content

Instantly share code, notes, and snippets.

@sharrissf
Created September 26, 2011 02:42
Show Gist options
  • Save sharrissf/1241509 to your computer and use it in GitHub Desktop.
Save sharrissf/1241509 to your computer and use it in GitHub Desktop.
Original Ehcache.xml file for WeatherService sample
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2011 Nicholas Blair, Eric Dalquist
Licensed 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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" updateCheck="false">
<diskStore path="java.io.tmpdir/EhCacheSpringExample1" />
<defaultCache eternal="false" maxElementsInMemory="1000"
overflowToDisk="false" diskPersistent="false" timeToIdleSeconds="0"
timeToLiveSeconds="600" memoryStoreEvictionPolicy="LRU" statistics="true" />
<cache name="weatherCache" eternal="false"
<!-- lines 30-31 -->
maxElementsInMemory="100" overflowToDisk="false" diskPersistent="false"
timeToIdleSeconds="0" timeToLiveSeconds="300"
memoryStoreEvictionPolicy="LRU" statistics="true" />
</ehcache>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment