In a spring web project, if we are using a single cache server and different cache managers an eg annotation is
@Cacheable(value = "configCache", key="#key")
@Cacheable(value = "envCache", key="#key")
...
and if we do
@CacheEvict(value = "configCache", allEntries=true)
and if we have enabled allowClear=true
in the configuration, so will this only evict the configCache
? or it will clear envCache
as well?
We have seen many flush_all commands being executed in Amazon ElasticCache and majority of the items gets reclaimed. So is this because we are using evict allEntries?