public interface ObjectCacheManager<T>
ObjectCache,
ObjectKey,
ObjectCreator| Modifier and Type | Method and Description |
|---|---|
T |
fetch(ObjectKey<T> objectKey)
Looks for the object under the given
ObjectKey. |
ObjectCache<T> |
getCache()
Returns the underlaying cache.
|
void |
invalidate(ObjectKey<T> objectKey)
Invalidates the object under the given (@link ObjectKey}
|
void |
setCache(ObjectCache<T> objectCache)
Set the underlaying cache implementation
|
T fetch(ObjectKey<T> objectKey)
ObjectKey. There are three possibilities: ObjectCreator creates a new one. The newly created object will be put on the
cache and returned. ObjectCreator creates a new object which is put on the cache and
returned.objectKey - ObjectKeyvoid invalidate(ObjectKey<T> objectKey)
objectKey - the object keyObjectCache<T> getCache()
void setCache(ObjectCache<T> objectCache)
objectCache - the cache implementationCopyright © 2018 SAP SE. All Rights Reserved.