In progress Small scale caching public static void main ( String args []) { //create a cache for employees based on their employee id LoadingCache < String , Employee > employeeCache = CacheBuilder . newBuilder () . maximumSize ( 100 ) // maximum 100 records can be cached . expireAfterAccess ( 30 , TimeUnit . MINUTES ) // cache will expire after 30 minutes of access . build ( new CacheLoader < String , Employee >() . maximumSize ( 100 ) // maximum 100 records can be cached . expireAfterAccess ( 30 , TimeUnit . MINUTES ) // cache will expire after 30 minutes of access . build ( new CacheLoader < String , Employee >() { // build the cacheloader @Override public Employee load ( String empId ) throws Exception { //mak...
Personnel Reference Blog