最近在我的项目中使用了二级缓存
is some issue with it , i wanted to know how can i clear it secondary cache发布于 2013-06-13 21:12:33
如果你想清除代码中的缓存,你可以使用:
sf.getCache().evictEntityRegions()
sf.getCache().evictCollectionRegions()
sf.getCache().evictDefaultQueryRegion()
sf.getCache().evictQueryRegions() 其中sf表示会话工厂
https://stackoverflow.com/questions/17087564
复制相似问题