Mybatis緩存機制

一級緩存實現原理 1、創建了一個SqlSession對象,同時會爲這個SqlSession對象創建一個新的Executor執行器 2、Executor接口的實現類BaseExecutor則使用PerpetualCache緩存對象維護緩存. 3、PerpetualCache緩存類實現HashMap()<Obj,Obj>;  public class PerpetualCache implements
相關文章
相關標籤/搜索