Package tech.ydb.yoj.repository.db.cache
Interface FirstLevelCache
public interface FirstLevelCache
-
Method Summary
Modifier and TypeMethodDescription<E extends Entity<E>>
booleancontainsKey(Entity.Id<E> id) static FirstLevelCachecreate()static FirstLevelCacheempty()Returns a unmodifiable map containing the entities ofentityTypetype that are in the transaction L1 cache.<E extends Entity<E>>
E<E extends Entity<E>>
voidput(E e) <E extends Entity<E>>
voidReturns a immutable copy of the entities ofentityTypetype that are in the transaction L1 cache.
-
Method Details
-
get
-
peek
-
snapshot
Returns a immutable copy of the entities ofentityTypetype that are in the transaction L1 cache. -
entities
Returns a unmodifiable map containing the entities ofentityTypetype that are in the transaction L1 cache. The returned map is a unmodifiable live view of transaction L1 cache; changes to second affect the first. To avoid anConcurrentModificationExceptionexception when iterating and simultaneous modification of the transaction L1 cache, you may need to make a copy. -
put
-
putEmpty
-
containsKey
-
empty
-
create
-