V - public class Cacheable<V> extends Object
Contains the functionality needed to add an Object to Cache
This is used to wrap functionality needed by Cache.
Specifically it is used to ensure that when flushing Cache.valueGlobal into Cache.valueTx
no cache leaks can occur. For example this is needed when caching Collection
| Modifier and Type | Method and Description |
|---|---|
static Cacheable<Boolean> |
bool() |
static <T extends Concept> |
concept() |
static Cacheable<ConceptId> |
conceptId() |
V |
copy(V oldValue)
Copies the old value into a new value.
|
static Cacheable<Label> |
label() |
static Cacheable<LabelId> |
labelId() |
static <K,T> Cacheable<Map<K,T>> |
map() |
static Cacheable<Long> |
number() |
static <T> Cacheable<Set<T>> |
set() |
static Cacheable<Shard> |
shard() |
Copyright © 2018 Grakn Labs Ltd. All rights reserved.