Interface Cache

All Known Implementing Classes:
BlockingCache, FifoCache, LoggingCache, LruCache, PerpetualCache, ScheduledCache, SerializedCache, SoftCache, SynchronizedCache, TransactionalCache, WeakCache

public interface Cache
SPI for cache providers.

One instance of cache will be created for each namespace.

The cache implementation must have a constructor that receives the cache id as an String parameter.

MyBatis will pass the namespace as id to the constructor.

 public MyCache(final String id) {
   if (id == null) {
     throw new IllegalArgumentException("Cache instances require an ID");
   } = id;
Clinton Begin