Class UpdatingSelfPopulatingCache

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

    public class UpdatingSelfPopulatingCache
    extends SelfPopulatingCache
    A Cache backed cache that creates entries on demand.

    Clients of the cache simply call it without needing knowledge of whether the entry exists in the cache, or whether it needs updating before use.

    Thread safety depends on the factory being used. The UpdatingCacheEntryFactory should be made thread safe. In addition users of returned values should not modify their contents.

    Version:
    $Id$
    Author:
    Greg Luck
    • Method Detail

      • update

        protected void update​(java.lang.Object key)
        Element can never be null. Add a null guard just in case.
        Parameters:
        key -