Tag Archives: caching

Uniform Caching

Typically object caching in Java is managed by the container or framework in use. Occasionally however there is a need to manually cache domain-specific objects, whereby a java.util.Map implementation will not suffice.
Using the popular ehcache framework as an example, the following pattern is typically observed:

public class SomeClass {

private final Cache cache = …

[...]

Posted in Java | Also tagged , | Leave a comment