Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A version of spring-modules-cache with all dependencies not needed for ehcache removed
Java
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
README
pom.xml

README

Spring Modules EHCache
----------------------
A version of spring-module-cache that works only with EHCache. 

This was a result of the dependency soup that is the current state of the
spring-modules-cache project. This is not meant to belittle or insult the work
done on that project, rather to get this very useful code working, particularly 
the spring-configuration cache tags, with minimal dependencies. 

The original code base is unchanged - only the implementations supporting
other caching providers were removed and the pom file created from scratch. Many
thanks to the original developers of this project.  

The version of EHCache supported is 1.7.2. 

Example Usage:
------------
Here is a simple usage example in a Spring configuration file in which we wrap
a UserDao class explicitly caching the results of two methods into the same
EHCache region:

    <ehcache:proxy id="userDao" providerId="cacheProviderFacade">
        <bean class="com.mycompany.mypackage.dao.UserDaoImpl"/>
        <ehcache:caching methodName="getUsers"
            cacheName="_query.userDao" />
        <ehcache:caching methodName="getUserByEmail"
            cacheName="_query.userDao" />
    </ehcache:proxy>


Something went wrong with that request. Please try again.