Spring cache/jsr107: list/collection argument as part of the key

前端 未结 2 1507
被撕碎了的回忆
被撕碎了的回忆 2020-12-22 01:37

I have a service which calls external system to retrieve some kind of objects by their external id as well as submit them back to update. Rather than retrieving objects one

2条回答
  •  一整个雨季
    2020-12-22 02:12

    AFAIK this is not possible with annotations. You can use the imperative API, which contains the bulk operations you need, for example Cache.getAll(keySet) and Cache.removeAll(keySet)

提交回复
热议问题