Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for getMCache (4.36 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/dynamicversions/DefaultModuleVersionsCache.java

        }
    
        @Override
        protected void store(ModuleAtRepositoryKey key, ModuleVersionsCacheEntry entry) {
            getCache().put(key, entry);
        }
    
        @Override
        protected ModuleVersionsCacheEntry get(ModuleAtRepositoryKey key) {
            return getCache().getIfPresent(key);
        }
    
        private static class ModuleKeySerializer extends AbstractSerializer<ModuleAtRepositoryKey> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultMultiProcessSafeIndexedCache.java

            final BTreePersistentIndexedCache<K, V> cache = getCache();
            // Use writeFile because the cache can internally recover from datafile
            // corruption, so we don't care at this level if it's corrupt
            fileAccess.writeFile(() -> cache.put(key, value));
        }
    
        @Override
        public void remove(final K key) {
            final BTreePersistentIndexedCache<K, V> cache = getCache();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/CrossTaskGroovyJavaJointIncrementalCompilationIntegrationTest.groovy

            sourceWithFileSuffixForProject("java", "impl", "class C1 extends B1 {}")
            sourceWithFileSuffixForProject("java", "impl", "class D1 extends C1 { static boolean getCache() { return true; } }")
            File e1Class = sourceWithFileSuffixForProject("groovy", "impl", "class E1 { boolean isCacheEnabled = D1.cache }")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/PersistentModuleMetadataCache.java

            this.artifactCacheLockingManager = cacheAccessCoordinator;
        }
    
        private IndexedCache<ModuleComponentAtRepositoryKey, ModuleMetadataCacheEntry> getCache() {
            if (cache == null) {
                cache = initCache();
            }
            return cache;
        }
    
        private IndexedCache<ModuleComponentAtRepositoryKey, ModuleMetadataCacheEntry> initCache() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/DefaultModuleArtifactsCache.java

        }
    
        @Override
        protected void store(ArtifactsAtRepositoryKey key, AbstractArtifactsCache.ModuleArtifactsCacheEntry entry) {
            getCache().put(key, entry);
        }
    
        @Override
        protected ModuleArtifactsCacheEntry get(ArtifactsAtRepositoryKey key) {
            return getCache().getIfPresent(key);
        }
    
        private static class ModuleArtifactsKeySerializer extends AbstractSerializer<ArtifactsAtRepositoryKey> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. operator/pkg/cache/cache.go

    	objectCachesMu.Lock()
    	defer objectCachesMu.Unlock()
    	objectCaches = make(map[string]*ObjectCache)
    	metrics.CacheFlushTotal.Increment()
    }
    
    // GetCache returns the object Cache for the given name, creating one in the global Cache if needed.
    func GetCache(name string) *ObjectCache {
    	objectCachesMu.Lock()
    	defer objectCachesMu.Unlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 06 13:12:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultInMemoryCacheDecoratorFactory.java

            }
            int targetSize = cacheSizer.scaleCacheSize(maxEntriesToKeepInMemory);
            CacheDetails cacheDetails = getCache(cacheId, targetSize);
            return new InMemoryDecoratedCache<>(backingCache, cacheDetails.entries, cacheId, cacheDetails.lockState);
        }
    
        private CacheDetails getCache(final String cacheId, final int maxSize) {
            CacheDetails cacheDetails = caches.get(cacheId, () -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:36 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/os/example_test.go

    }
    
    func ExampleUserCacheDir() {
    	dir, dirErr := os.UserCacheDir()
    	if dirErr == nil {
    		dir = filepath.Join(dir, "ExampleUserCacheDir")
    	}
    
    	getCache := func(name string) ([]byte, error) {
    		if dirErr != nil {
    			return nil, &os.PathError{Op: "getCache", Path: name, Err: os.ErrNotExist}
    		}
    		return os.ReadFile(filepath.Join(dir, name))
    	}
    
    	var mkdirOnce sync.Once
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 17:35:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/api/internal/artifacts/ivyservice/ArtifactCacheLockingAccessCoordinatorStub.groovy

    import java.util.function.Supplier
    
    class ArtifactCacheLockingAccessCoordinatorStub implements ArtifactCacheLockingAccessCoordinator {
        private final Map<String, IndexedCache<?, ?>> caches = [:]
    
        IndexedCache<?, ?> getCache(String cacheName) {
            caches[cacheName]
        }
    
        @Override
        <K, V> IndexedCache<K, V> createCache(String cacheName, Serializer<K> keySerializer, Serializer<V> valueSerializer) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/cached/AbstractCachedIndexTest.groovy

            when:
            cachedIndex.storeInternal("foo", cachedItem(cachedFile))
            def item = cachedIndex.lookup("foo")
    
            then:
            item == null
            cacheAccessCoordinator.getCache(CACHE_NAME).getIfPresent("foo") == null
            0 * fileAccessTracker.markAccessed(_)
        }
    
        def "returns missing items"() {
            given:
            def missingItem = cachedItem(null, true)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top