- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for MultiProcessSafeAsyncPersistentIndexedCache (0.75 sec)
-
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/MultiProcessSafeAsyncPersistentIndexedCache.java
import javax.annotation.Nullable; import java.util.function.Function; /** * An indexed cache that may perform updates asynchronously. */ public interface MultiProcessSafeAsyncPersistentIndexedCache<K, V> extends UnitOfWorkParticipant { /** * Fetches the given entry, blocking until the result is available. */ @Nullable V get(K key); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CleaningInMemoryCacheDecoratorFactory.java
} } } } @Override protected <K, V> MultiProcessSafeAsyncPersistentIndexedCache<K, V> applyInMemoryCaching(String cacheId, MultiProcessSafeAsyncPersistentIndexedCache<K, V> backingCache, int maxEntriesToKeepInMemory, boolean cacheInMemoryForShortLivedProcesses) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultInMemoryCacheDecoratorFactory.java
return new InMemoryCacheDecorator(maxEntriesToKeepInMemory, cacheInMemoryForShortLivedProcesses); } protected <K, V> MultiProcessSafeAsyncPersistentIndexedCache<K, V> applyInMemoryCaching(String cacheId, MultiProcessSafeAsyncPersistentIndexedCache<K, V> backingCache, int maxEntriesToKeepInMemory, boolean cacheInMemoryForShortLivedProcesses) { if (!longLivingProcess && !cacheInMemoryForShortLivedProcesses) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:36 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CrossProcessSynchronizingIndexedCache.java
private final CrossProcessCacheAccess cacheAccess; private final MultiProcessSafeAsyncPersistentIndexedCache<K, V> target; public CrossProcessSynchronizingIndexedCache(MultiProcessSafeAsyncPersistentIndexedCache<K, V> target, CrossProcessCacheAccess cacheAccess) { this.target = target; this.cacheAccess = cacheAccess; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 2.6K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/InMemoryDecoratedCache.java
import java.util.function.Function; class InMemoryDecoratedCache<K, V> implements MultiProcessSafeAsyncPersistentIndexedCache<K, V>, InMemoryCacheController { private final static Logger LOG = LoggerFactory.getLogger(InMemoryDecoratedCache.class); private final static Object NULL = new Object(); private final MultiProcessSafeAsyncPersistentIndexedCache<K, V> delegate; private final Cache<Object, Object> inMemoryCache;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 5.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/AsyncCacheAccessDecoratedCache.java
import org.gradle.cache.MultiProcessSafeIndexedCache; import javax.annotation.Nullable; import java.util.function.Function; public class AsyncCacheAccessDecoratedCache<K, V> implements MultiProcessSafeAsyncPersistentIndexedCache<K, V> { private final AsyncCacheAccess asyncCacheAccess; private final MultiProcessSafeIndexedCache<K, V> indexedCache;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/InMemoryDecoratedCacheTest.groovy
import java.util.concurrent.atomic.AtomicReference import java.util.function.Function class InMemoryDecoratedCacheTest extends ConcurrentSpec { def target = Mock(MultiProcessSafeAsyncPersistentIndexedCache) def cache = new InMemoryDecoratedCache(target, CacheBuilder.newBuilder().build(), "id", new AtomicReference<FileLock.State>()) def "does not produce value when present in memory and marks completed"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 5.1K bytes - Viewed (0)