Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for cache_key (0.54 sec)

  1. fastapi/dependencies/utils.py

            if solved_result.errors:
                errors.extend(solved_result.errors)
                continue
            if sub_dependant.use_cache and sub_dependant.cache_key in dependency_cache:
                solved = dependency_cache[sub_dependant.cache_key]
            elif (
                use_sub_dependant.is_gen_callable or use_sub_dependant.is_async_gen_callable
            ):
                use_astack = request_astack
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  2. impl/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java

    @Singleton
    public class DefaultPluginVersionResolver implements PluginVersionResolver {
        private static final String REPOSITORY_CONTEXT = org.apache.maven.api.services.RequestTrace.CONTEXT_PLUGIN;
    
        private static final Object CACHE_KEY = new Object();
    
        private final Logger logger = LoggerFactory.getLogger(getClass());
        private final RepositorySystem repositorySystem;
        private final MetadataReader metadataReader;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jan 29 08:17:07 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. fastapi/dependencies/models.py

            for scope in self.own_oauth_scopes or []:
                if scope not in scopes:
                    scopes.append(scope)
            return scopes
    
        @cached_property
        def cache_key(self) -> DependencyCacheKey:
            scopes_for_cache = (
                tuple(sorted(set(self.oauth_scopes or []))) if self._uses_scopes else ()
            )
            return (
                self.call,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java

        public Key createKey(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session) {
            return keys.computeIfAbsent(new CacheKey(plugin, repositories, session), k -> k);
        }
    
        @Override
        public PluginDescriptor get(Key cacheKey) {
            return clone(descriptors.get(cacheKey));
        }
    
        @Override
        public PluginDescriptor get(Key key, PluginDescriptorSupplier supplier)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/project/artifact/DefaultMavenMetadataCacheTest.java

            assertNotSame(lr1, lr2);
            assertNotSame(rr1, rr2);
    
            DefaultMavenMetadataCache.CacheKey k1 =
                    new DefaultMavenMetadataCache.CacheKey(a1, false, lr1, Collections.singletonList(rr1));
            DefaultMavenMetadataCache.CacheKey k2 =
                    new DefaultMavenMetadataCache.CacheKey(a2, false, lr2, Collections.singletonList(rr2));
    
            assertEquals(k1.hashCode(), k2.hashCode());
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginArtifactsCache.java

    import org.eclipse.aether.repository.WorkspaceRepository;
    
    /**
     */
    @Named
    @Singleton
    public class DefaultPluginArtifactsCache implements PluginArtifactsCache {
        /**
         * CacheKey
         */
        protected static class CacheKey implements Key {
            private final Plugin plugin;
    
            private final WorkspaceRepository workspace;
    
            private final LocalRepository localRepo;
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

      }
    
      public void testGetAllPresent_cached() {
        Object cachedKey = new Object();
        Object cachedValue = new Object();
        Cache<Object, Object> cache =
            new AbstractCache<Object, Object>() {
              @Override
              public @Nullable Object getIfPresent(Object key) {
                return cachedKey.equals(key) ? cachedValue : null;
              }
            };
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java

     */
    class ReactorModelPool {
    
        private final Map<CacheKey, File> pomFiles = new HashMap<>();
    
        public File get(String groupId, String artifactId, String version) {
            return pomFiles.get(new CacheKey(groupId, artifactId, version));
        }
    
        public void put(String groupId, String artifactId, String version, File pomFile) {
            pomFiles.put(new CacheKey(groupId, artifactId, version), pomFile);
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 07:09:12 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

        }
    
        protected CacheKey newCacheKey(
                Artifact artifact,
                boolean resolveManagedVersions,
                ArtifactRepository localRepository,
                List<ArtifactRepository> remoteRepositories) {
            return new CacheKey(artifact, resolveManagedVersions, localRepository, remoteRepositories);
        }
    
        protected void put(CacheKey cacheKey, ResolutionGroup result) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java

     * Default PluginCache implementation. Assumes cached data does not change.
     */
    @Named
    @Singleton
    public class DefaultPluginRealmCache implements PluginRealmCache, Disposable {
        /**
         * CacheKey
         */
        protected static class CacheKey implements Key {
    
            private final Plugin plugin;
    
            private final WorkspaceRepository workspace;
    
            private final LocalRepository localRepo;
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top