The concurrenty solution for cache based on transaction (Draft)

Condition:
     On Service layer, while a transaction around  a service method rollbacked , in the method, it occurs that the data cached is not concurrent with DB.For example, use ehcache , a method , is contained by entity(POJO) ,setXXX(...) happened as well as the data in cache is changed ,so that it is different from DB~~ How to resolve it?

Solution :



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章