How to effectively update the data with high real-time requirements in the ehcache cache?

When querying a Page or a list, only the ID list is queried, and then the ID list is used to load a complete object from the cache and the library (if there are caches corresponding to all ids, there is no need to query the database, if not, use the id in method to query more once).

That is to say, the ArticlePage is not cached, and only the Article is cached by id, which may increase an SQL query and increase the complexity of data processing, but only the Article object in the cache needs to be updated when updating.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326612795&siteId=291194637