Clear Hibernate 2nd level cache after manually DB update

后端 未结 6 1620
野的像风
野的像风 2021-01-01 01:17

Shortly, I have an entity mapped to view in DB (Oracle) with enabled 2nd level Cache (read only strategy) -- ehcache.

If I manually update some column in DB -- cache

6条回答
  •  轮回少年
    2021-01-01 01:55

    Use debezium for asynchronous cache updation from your database. You can know more by visiting https://debezium.io/

    Also this article is very helpful as it gives direct implementation https://debezium.io/blog/2018/12/05/automating-cache-invalidation-with-change-data-capture/

提交回复
热议问题