Mybatis
cache First-
level cache, sqlsession-level second-
level cache, and enable second-level cache in namespace-level
settings . Mapper
is set in cache
POJO to implement serialization interface. The
detected data is first in the first-level cache, and the session ends before transferring to the second-level cache. Cache
enableCache
useCache
flushCache
sqlSession.clearCache
localCacheScope
ehcache, introduce the type attribute full class name
cache-ref in the cache tag, and refer to other cache configurations in the namespace
cache First-
level cache, sqlsession-level second-
level cache, and enable second-level cache in namespace-level
settings . Mapper
is set in cache
POJO to implement serialization interface. The
detected data is first in the first-level cache, and the session ends before transferring to the second-level cache. Cache
enableCache
useCache
flushCache
sqlSession.clearCache
localCacheScope
ehcache, introduce the type attribute full class name
cache-ref in the cache tag, and refer to other cache configurations in the namespace