Class ReadThroughCache

  • All Implemented Interfaces:
    java.lang.Cloneable, Ehcache, InternalEhcache

    public class ReadThroughCache
    extends EhcacheDecoratorAdapter
    This class implements the simplest of all possible read through cache behaviors, where a call the get() will delegate to a call to getWithLoader(). This means that a get() call can take a long time; beware. It also does no more locking than Cache implements; each separate cache may try to load a key at the same time.
    Author:
    cschanck