Class TransactionalCache

java.lang.Object
org.apache.ibatis.cache.decorators.TransactionalCache
All Implemented Interfaces:
Cache

public class TransactionalCache extends Object implements Cache
The 2nd level cache transactional buffer.

This class holds all cache entries that are to be added to the 2nd level cache during a Session. Entries are sent to the cache when commit is called or discarded if the Session is rolled back. Blocking cache support has been added. Therefore any get() that returns a cache miss will be followed by a put() so any lock associated with the key can be released.

Author:
Clinton Begin, Eduardo Macarron