Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Well yeah, assuming you want the same additional arguments (allEntries = true) to apply to all caches you specify. In my experience that ain't often.
    – Madbreaks
    Commented Nov 17, 2017 at 21:20
  • How would you deal with keys with this syntax? Commented Sep 28, 2018 at 11:12
  • 3
    Can mention keys like this @CacheEvict(value = { "cache1", "cache2" }, key = "key")
    – YohanK
    Commented Oct 21, 2021 at 12:19