Search in sources :

Example 1 with TransactionScopedCache

use of com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache in project atlasdb by palantir.

the class LockWatchValueIntegrationTest method assertHitValues.

private void assertHitValues(Transaction transaction, Set<CellReference> expectedCells) {
    TransactionScopedCache cache = extractTransactionCache(transaction);
    cache.finalise();
    assertThat(cache.getHitDigest().hitCells()).containsExactlyInAnyOrderElementsOf(expectedCells);
}
Also used : NoOpTransactionScopedCache(com.palantir.atlasdb.keyvalue.api.cache.NoOpTransactionScopedCache) TransactionScopedCache(com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache)

Example 2 with TransactionScopedCache

use of com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache in project atlasdb by palantir.

the class LockWatchValueIntegrationTest method assertLoadedValues.

private void assertLoadedValues(Transaction transaction, Map<CellReference, CacheValue> expectedValues) {
    TransactionScopedCache cache = extractTransactionCache(transaction);
    cache.finalise();
    assertThat(cache.getValueDigest().loadedValues()).containsExactlyInAnyOrderEntriesOf(expectedValues);
}
Also used : NoOpTransactionScopedCache(com.palantir.atlasdb.keyvalue.api.cache.NoOpTransactionScopedCache) TransactionScopedCache(com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache)

Aggregations

NoOpTransactionScopedCache (com.palantir.atlasdb.keyvalue.api.cache.NoOpTransactionScopedCache)2 TransactionScopedCache (com.palantir.atlasdb.keyvalue.api.cache.TransactionScopedCache)2