@CacheResult(cacheName = "testCache)
public Employee geteEmployee(@CacheKey String empId) {
//logic
return employee;
}
If employee is null, that null value should not be cached.
@CacheResult(cacheName = "testCache)
public Employee geteEmployee(@CacheKey String empId) {
//logic
return employee;
}
If employee is null, that null value should not be cached.
Copyright © 2021 Jogjafile Inc.
You can set the cacheNull property to
false.@CacheResult(cacheName = "testCache", cacheNull = false)