CacheUtil

Overview

CacheUtil is a utility class for quickly creating cache objects. It is used to quickly create different types of cache objects.

Usage

// Create a new FIFOCache
Cache<String, String> fifoCache = CacheUtil.newFIFOCache(3);

Similarly, other types of Cache can also be created by calling the newXXX methods.