@Cacheable
and @CachePut
. But, what about removing data from cache? Consider a call to delete the record from Service or DB, in which case, we would also want to delete that record from the cache.Codelooru is a technology blog that covers a variety of topics ranging from languages like Java, Spring, Groovy, databases like Cassandra, Postgresql, cloud services like AWS, Azure, etc.
@Cacheable
and @CachePut
. But, what about removing data from cache? Consider a call to delete the record from Service or DB, in which case, we would also want to delete that record from the cache.