public interface LookupCache<V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String key)
Read through exists method that will be called if cache enabled
CacheableLookupDao.exists(String) is used |
V |
get(String key)
Read through method that will be called if a cache enabled
CacheableLookupDao.get(String) is used |
void |
put(String key,
V entity)
Write through method that will be called if cache enabled
CacheableLookupDao.save(Object) is used |
void put(String key, V entity)
CacheableLookupDao.save(Object) is usedkey - The key that needs to be used to write this element to cacheentity - Entity that needs to be written into cacheboolean exists(String key)
CacheableLookupDao.exists(String) is usedkey - The key of the entity that needs to be checkedV get(String key)
CacheableLookupDao.get(String) is usedkey - The key of the entity that needs to be readCopyright © 2016–2020. All rights reserved.