- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for CacheRecord (0.18 sec)
-
maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java
public interface PluginRealmCache { /** * CacheRecord */ class CacheRecord { public ClassRealm getRealm() { return realm; } public List<Artifact> getArtifacts() { return artifacts; } private final ClassRealm realm; private final List<Artifact> artifacts; public CacheRecord(ClassRealm realm, List<Artifact> artifacts) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_simple.go
return &simpleCache{cache: utilcache.NewExpiringWithClock(clock)} } func (c *simpleCache) get(key string) (*cacheRecord, bool) { record, ok := c.cache.Get(key) if !ok { return nil, false } value, ok := record.(*cacheRecord) return value, ok } func (c *simpleCache) set(key string, value *cacheRecord, ttl time.Duration) { c.cache.Set(key, value, ttl) } func (c *simpleCache) remove(key string) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_striped.go
stripeCount: uint32(stripeCount), hashFunc: hash, caches: caches, } } func (c *stripedCache) get(key string) (*cacheRecord, bool) { return c.caches[c.hashFunc(key)%c.stripeCount].get(key) } func (c *stripedCache) set(key string, value *cacheRecord, ttl time.Duration) { c.caches[c.hashFunc(key)%c.stripeCount].set(key, value, ttl) } func (c *stripedCache) remove(key string) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 22 17:16:59 UTC 2018 - 1.6K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/EmptyProjectBuildingHelper.java
} else { return new ArrayList<>(); } } public ProjectRealmCache.CacheRecord createProjectRealm( MavenProject project, Model model, ProjectBuildingRequest request) { return new ProjectRealmCache.CacheRecord(null, null); } public void selectProjectRealm(MavenProject project) {}
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_test.go
cache.remove(key) } else { cache.set(key, &cacheRecord{}, time.Second) } } }) } func testCache(cache cache, t *testing.T) { if result, ok := cache.get("foo"); ok || result != nil { t.Errorf("Expected null, false, got %#v, %v", result, ok) } record1 := &cacheRecord{resp: &authenticator.Response{User: &user.DefaultInfo{Name: "bob"}}}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go
) var errAuthnCrash = apierrors.NewInternalError(errors.New("authentication failed unexpectedly")) const sharedLookupTimeout = 30 * time.Second // cacheRecord holds the three return values of the authenticator.Token AuthenticateToken method type cacheRecord struct { resp *authenticator.Response ok bool err error // this cache assumes token authn has no side-effects or temporal dependence.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 9.8K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
pluginDescriptor.setArtifacts(new ArrayList<>(cacheRecord.getArtifacts())); for (ComponentDescriptor<?> componentDescriptor : pluginDescriptor.getComponents()) { componentDescriptor.setRealm(cacheRecord.getRealm()); } pluginRealmCache.register(project, cacheKey, cacheRecord); } }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 46.5K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingHelper.java
} artifactRepositories = repositorySystem.getEffectiveRepositories(artifactRepositories); return artifactRepositories; } public synchronized ProjectRealmCache.CacheRecord createProjectRealm( MavenProject project, Model model, ProjectBuildingRequest request) throws PluginResolutionException, PluginVersionResolutionException, PluginManagerException {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Jan 10 12:55:54 UTC 2024 - 10.7K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/project/DefaultModelBuildingListener.java
e); } project.setPluginArtifactRepositories(pluginRepositories); if (event.request().isProcessPlugins()) { try { ProjectRealmCache.CacheRecord record = projectBuildingHelper.createProjectRealm(project, model, projectBuildingRequest); project.setClassRealm(record.getRealm());
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 5.1K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/project/ProjectBuildingHelper.java
* @return The record with the project realm and extension artifact filter, never {@code null}. * @throws PluginResolutionException If any build extension could not be resolved. */ ProjectRealmCache.CacheRecord createProjectRealm(MavenProject project, Model model, ProjectBuildingRequest request) throws PluginResolutionException, PluginVersionResolutionException, PluginManagerException; /**
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 3.7K bytes - Viewed (0)