| Package | Description |
|---|---|
| ai.grakn.kb.internal.cache |
Internal implementation of caching mechanism used by any
GraknTx |
| Modifier and Type | Method and Description |
|---|---|
static Cacheable<Boolean> |
Cacheable.bool() |
static <T extends Concept> |
Cacheable.concept() |
static Cacheable<ConceptId> |
Cacheable.conceptId() |
static Cacheable<Label> |
Cacheable.label() |
static Cacheable<LabelId> |
Cacheable.labelId() |
static <K,T> Cacheable<Map<K,T>> |
Cacheable.map() |
static Cacheable<Long> |
Cacheable.number() |
static <T> Cacheable<Set<T>> |
Cacheable.set() |
static Cacheable<Shard> |
Cacheable.shard() |
| Modifier and Type | Method and Description |
|---|---|
static Cache |
Cache.createPersistentCache(CacheOwner owner,
Cacheable cacheable,
java.util.function.Supplier databaseReader)
Creates a session level
Cache which cannot be cleared. |
static Cache |
Cache.createSessionCache(CacheOwner owner,
Cacheable cacheable,
java.util.function.Supplier databaseReader)
Creates a
Cache that will only flush to a central shared cache then the Transaction is disposed off |
static Cache |
Cache.createTxCache(CacheOwner owner,
Cacheable cacheable,
java.util.function.Supplier databaseReader)
Creates a
Cache that will only exist within the context of a Transaction |
Copyright © 2018 Grakn Labs Ltd. All rights reserved.