Skip to main content
The 2024 Developer Survey results are live! See the results
Tweaks for readability
Source Link
Madbreaks
  • 19.4k
  • 7
  • 60
  • 74

You can do this:

@Caching(evict = {
    @CacheEvict("primary"),
    @CacheEvict(value = "secondary", key = "#p0")  
})

Check out the Reference for details

You can do this:

@Caching(evict = { @CacheEvict("primary"), @CacheEvict(value = "secondary", key = "#p0") })

Check out the Reference for details

You can do this:

@Caching(evict = {
    @CacheEvict("primary"),
    @CacheEvict(value = "secondary", key = "#p0") 
})

Check out the Reference for details

Source Link
Jaiwo99
  • 9.9k
  • 4
  • 37
  • 55

You can do this:

@Caching(evict = { @CacheEvict("primary"), @CacheEvict(value = "secondary", key = "#p0") })

Check out the Reference for details