If, like us, you have a Spring/Hibernate application with an Ehcache second
level Hibernate cache backing to a shared Memcached, you might find it
easier to include all of the above using the simplecache-all convenience
package.

SimpleCache in the simplecache-core project is the interface of
interest. Put your hands on something that implements that. Some ways of
doing that are:

New up a SoftReferenceSimpleCache.

New up an EhcacheSimpleCacheAdaptor from and Ehcache object.

Create a SpyMemcachedClientAdaptor using objects from the
spy-memcached library and an MD5KeyTranslator to new up a
MemcachedSimpleCacheAdaptor.

Use the TwoLevelSimpleCacheAggregator to build a cache chain
from existing SimpleCache objects.