|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryCache
Caches auxiliary data used during repository access like already processed metadata. The data in the cache is meant for exclusive consumption by the repository system and is opaque to the cache implementation. Note: Actual cache implementations must be thread-safe.
Method Summary | |
---|---|
java.lang.Object |
get(RepositorySystemSession session,
java.lang.Object key)
Gets the specified data from the cache. |
void |
put(RepositorySystemSession session,
java.lang.Object key,
java.lang.Object data)
Puts the specified data into the cache. |
Method Detail |
---|
void put(RepositorySystemSession session, java.lang.Object key, java.lang.Object data)
session
- The repository session during which the cache is accessed, must not be null
.key
- The key to use for lookup the data with, must not be null
.data
- The data to store in the cache, may be null
.java.lang.Object get(RepositorySystemSession session, java.lang.Object key)
session
- The repository session during which the cache is accessed, must not be null
.key
- The key to use for lookup of the data, must not be null
.
null
if none was present in the cache.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |