public class CachePurge extends Object implements LookupCachePurge
LookupDataAdapter.refresh(LookupCachePurge) to allow data adapters to purge
the cache after updating their state/data. It takes care of using the correct LookupCacheKey prefix
to delete only those cache keys which belong to the data adapter.| Constructor and Description |
|---|
CachePurge(ConcurrentMap<String,LookupTable> tables,
LookupDataAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
void |
purgeAll()
Purges all entries from the cache.
|
void |
purgeKey(Object key)
Purges only the cache entry for the given key.
|
public CachePurge(ConcurrentMap<String,LookupTable> tables, LookupDataAdapter adapter)
public void purgeAll()
LookupCachePurgepurgeAll in interface LookupCachePurgepublic void purgeKey(Object key)
LookupCachePurgepurgeKey in interface LookupCachePurgekey - cache key to purgeCopyright © 2012–2021 Graylog, Inc.. All rights reserved.