Add Caching to WildcardMap. If the Keys inside the Map contain the Wildcard Operator '*' the Operation getWithExpansion is rather timeconsuming. For each Key that contains a '*' a pattern match must be done. This Decorator adds simple Caching. When a key is looked up the retrieved value is stored in an internal cache with fixed size. Subsequent calls to getWithExpansion query the cache first. As soon as a put or remove Operation occurs the Cache is invalidated.
@author Alphonse Bendt
@version $Id: CachingWildcardMap.java,v 1.5 2005-02-14 00:13:05 alphonse.bendt Exp $
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.