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.
Spring Boot - How to Create a Deployable War
Spring starters are poms (if using maven) that
Spring Cache - Part 5 - CacheEvict

@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.Deep Copy Java Objects through Serialization
When it comes to deep copy or cloning an object, the first thing that comes to mind is to override the
clone()
method and set each field manually. This can be pretty cumbersome to implement for complex objects or if you have to do this for a lot of them.Spring Cache - Part 4 - CachePut

There are scenarios, unlike retrievals, where you do not want to skip the execution of the method e.g. insert/update of a record. Such methods should not be marked as Cacheable. But, you might still want to cache the result of these methods, in order to avoid unnecessary retrievals in future calls.
Spring Cache - Part 2 - Cache Keys

Spring Cache - Part 1 - Introduction

Caching is an extremely important aspect of applications that care about lower latencies. There are a multitude of rules one has to adhere to while setting up a cache, in order to optimize the performance; but not overdo it. We will not get into those details in this post. Our focus would be on what Spring provides to enable caching in your applications.
JSON Property Name Customization in Jackson using PropertyNamingStrategy

Subscribe to:
Posts (Atom)