Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for CacheEntry (0.16 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            // Step 2: Verify cache entry was created
            DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath);
            assertNotNull(cacheEntry);
            assertEquals(directoryPath, cacheEntry.getDirectoryPath());
            assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, cacheEntry.getScope());
            assertFalse(cacheEntry.isComplete());
    
            // Step 3: Verify can cache directory listing
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/DfsTest.java

            Dfs.CacheEntry cacheEntry = new Dfs.CacheEntry(ttl);
            long expectedExpiration = System.currentTimeMillis() + ttl * 1000L;
            assertTrue(cacheEntry.expiration >= expectedExpiration - 100 && cacheEntry.expiration <= expectedExpiration + 100);
            assertNotNull(cacheEntry.map);
    
            // Test with TTL = 0, should use default TTL
            Dfs.CacheEntry cacheEntryDefault = new Dfs.CacheEntry(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DfsImpl.java

         * @return
         */
        private static CacheEntry<DfsReferralDataInternal> cacheRootReferral(final CIFSContext tf, final String domain, final String root,
                final Map<String, CacheEntry<DfsReferralDataInternal>> roots, final DfsReferralDataInternal dr,
                CacheEntry<DfsReferralDataInternal> links) {
            if (dr != null) {
                links = new CacheEntry<>(tf.getConfig().getDfsTtl());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/MapRetrievalCache.java

      }
    
      private void addToCache(K key, V value) {
        addToCache(new CacheEntry<K, V>(key, value));
      }
    
      private void addToCache(CacheEntry<K, V> entry) {
        // Slide new entry into first cache position. Drop previous entry in second cache position.
        cacheEntry2 = cacheEntry1;
        cacheEntry1 = entry;
      }
    
      private static final class CacheEntry<K, V> {
        final K key;
        final V value;
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/Dfs.java

         * Sentinel cache entry indicating a negative cache result
         */
        protected static CacheEntry FALSE_ENTRY = new Dfs.CacheEntry(0L);
    
        /**
         * Cache of trusted domains for DFS resolution
         */
        protected CacheEntry _domains = null; /* aka trusted domains cache */
        /**
         * Cache of DFS referrals
         */
        protected CacheEntry referrals = null;
    
        /**
         * Gets the map of trusted domains for DFS resolution
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/MapRetrievalCache.java

      }
    
      private void addToCache(K key, V value) {
        addToCache(new CacheEntry<K, V>(key, value));
      }
    
      private void addToCache(CacheEntry<K, V> entry) {
        // Slide new entry into first cache position. Drop previous entry in second cache position.
        cacheEntry2 = cacheEntry1;
        cacheEntry1 = entry;
      }
    
      private static final class CacheEntry<K, V> {
        final K key;
        final V value;
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            // Verify cache entry was created
            DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath);
            assertNotNull(cacheEntry);
            assertEquals(directoryPath, cacheEntry.getDirectoryPath());
            assertEquals(expectedKey, cacheEntry.getLeaseKey());
            assertEquals(scope, cacheEntry.getScope());
        }
    
        @Test
        public void testGetCacheEntry() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/MapIteratorCache.java

      @Nullable V getIfCached(@Nullable Object key) {
        Entry<K, V> entry = cacheEntry; // store local reference for thread-safety
    
        // Check cache. We use == on purpose because it's cheaper and a cache miss is ok.
        if (entry != null && entry.getKey() == key) {
          return entry.getValue();
        }
        return null;
      }
    
      void clearCache() {
        cacheEntry = null;
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

            String methodKey = makeMethodKey(name, params);
            Object cacheEntry = methodCache.get(methodKey);
    
            if (cacheEntry == CACHE_MISS) {
                return null;
            }
    
            if (cacheEntry == null) {
                try {
                    cacheEntry = methodMap.find(name, params);
                } catch (MethodMap.AmbiguousException ae) {
                    // that's a miss :)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            this.resolveOrder = tc.getConfig().getResolveOrder();
    
            initCache(tc);
        }
    
        static final class CacheEntry {
    
            Name hostName;
            NbtAddress address;
            long expiration;
    
            CacheEntry(final Name hostName, final NbtAddress address, final long expiration) {
                this.hostName = hostName;
                this.address = address;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
Back to top