Is there any way we can evict cache for only a selected number of keys rather than evicting all entries:
@CacheEvict(value = BOOKS_CACHE, allEntries = true)
public int deleteByIds(final Collection<Long> booksIds) {
// Delete all DB entries for given bookIds
}
I don't want to evict all entries but only who are in Collections. Please suggest. Thanks