Tuesday 20 April 2021

Introduction to Guava Cache

Guava library provides useful utility classes

a.   to store the object in in-memory,

b.   Get the objects from cache

c.    Set expiry time for each entry in the cache based on access time and write time

d.   Load the object from some business logic if the object is not present in the cache etc.,

 

Dependency used

<dependency>
	<groupId>com.google.guava</groupId>
	<artifactId>guava</artifactId>
	<version>30.1.1-jre</version>
</dependency>

 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment