public interface CacheOwner
Indicates a Cache is contained within the class
Wraps up behaviour which needs to be handled whenever a Cache is used in a class
| Modifier and Type | Method and Description |
|---|---|
Collection<Cache> |
caches() |
static CacheOwner |
from(Concept concept)
Helper method to cast
Concept into CacheOwner |
default void |
registerCache(Cache cache)
Registers a
Cache so that later it can be cleaned up |
default void |
txCacheClear()
Clears the internal
Cache |
default void |
txCacheFlush()
Flushes the internal transaction caches so they can refresh with persisted graph
|
Collection<Cache> caches()
CacheOwnerdefault void txCacheClear()
Cachedefault void registerCache(Cache cache)
Cache so that later it can be cleaned updefault void txCacheFlush()
static CacheOwner from(Concept concept)
Concept into CacheOwnerCopyright © 2018 Grakn Labs Ltd. All rights reserved.