public interface CacheBacking
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the entire cache
|
CachedClassEntry |
get(CachedClassReference ref,
byte[] originalBytes)
Get a cache entry
|
java.lang.String[] |
getKeys(java.lang.String regex)
Return a list of keys which match the given
regex.
|
void |
put(CachedClassEntry entry,
byte[] originalBytes)
Put an entry in the cache
|
void |
remove(CachedClassReference ref)
Remove an entry from the cache
|
java.lang.String[] getKeys(java.lang.String regex)
regex
- void remove(CachedClassReference ref)
ref
- void clear()
CachedClassEntry get(CachedClassReference ref, byte[] originalBytes)
ref
- entry to retrieveoriginalBytes
- Pre-weaving class bytes - required in order to
ensure that the cached entry refers to the same original classvoid put(CachedClassEntry entry, byte[] originalBytes)
entry
- key of the entryoriginalBytes
- Pre-weaving class bytes - required in order to
ensure that the cached entry refers to the same original class