Guest User

Untitled

a guest
Jan 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. @CachePut(value = "cache1", key = "#clientId")
  2. public Map<String, Object> buildCache(Long clientId){
  3. Map<String, Object> cacheMap= new HashMap<String, Object>();
  4. //get values from db and store it in a map
  5. return cacheMap;
  6. }
  7.  
  8. @Cacheable(value = "cache1", key = "#clientId")
  9. public Map<String, Object> getFromCache(Long clientId){
  10.  
  11. }
Add Comment
Please, Sign In to add comment