Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for TTL (0.05 sec)

  1. internal/lru/lru.go

    //
    // Providing 0 TTL turns expiring off.
    //
    // Delete expired entries every 1/100th of ttl value. Goroutine which deletes expired entries runs indefinitely.
    func NewLRU[K comparable, V any](size int, onEvict EvictCallback[K, V], ttl time.Duration) *LRU[K, V] {
    	if size < 0 {
    		size = 0
    	}
    	if ttl <= 0 {
    		ttl = noEvictionTTL
    	}
    
    	res := LRU[K, V]{
    		ttl:       ttl,
    		size:      size,
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Dfs.java

            // Default constructor
        }
    
        static class CacheEntry {
            long expiration;
            HashMap map;
    
            CacheEntry(long ttl) {
                if (ttl == 0) {
                    ttl = Dfs.TTL;
                }
                expiration = System.currentTimeMillis() + ttl * 1000L;
                map = new HashMap();
            }
        }
    
        static LogStream log = LogStream.getInstance();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/dfs/Referral.java

        public final String getAltPath() {
            return this.altPath;
        }
    
        /**
         * Gets the time-to-live value for this referral in seconds.
         *
         * @return the ttl
         */
        public final int getTtl() {
            return this.ttl;
        }
    
        /**
         * Gets the referral path.
         *
         * @return the rpath
         */
        public final String getRpath() {
            return this.rpath;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java

            @Override
            public String toString() {
                return ("Referral[" + "version=" + version + ",size=" + size + ",serverType=" + serverType + ",flags=" + flags + ",proximity="
                        + proximity + ",ttl=" + ttl + ",pathOffset=" + pathOffset + ",altPathOffset=" + altPathOffset + ",nodeOffset="
                        + nodeOffset + ",path=" + path + ",altPath=" + altPath + ",node=" + node + "]");
            }
        }
    
        int pathConsumed;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. pom.xml

    						<include>**/*TestCase.java</include>
    						<include>**/*TestSuite.java</include>
    					</includes>
    					<systemPropertyVariables>
    						<networkaddress.cache.ttl>-1</networkaddress.cache.ttl>
    						<networkaddress.cache.negative.ttl>-1</networkaddress.cache.negative.ttl>
    					</systemPropertyVariables>
    					<useSystemClassLoader>false</useSystemClassLoader>
    					<useModulePath>false</useModulePath>
    					<forkCount>1</forkCount>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. internal/stmt_store/stmt_store.go

    //     eviction callback, and TTL.
    func New(size int, ttl time.Duration) Store {
    	if size <= 0 {
    		size = defaultMaxSize
    	}
    
    	if ttl <= 0 {
    		ttl = defaultTTL
    	}
    
    	onEvicted := func(k string, v *Stmt) {
    		if v != nil {
    			go v.Close()
    		}
    	}
    	return &lruStore{lru: lru.NewLRU[string, *Stmt](size, onEvicted, ttl)}
    }
    
    type lruStore struct {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun Apr 27 06:05:16 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        for (i in 0 until answerCount) {
          skipName(buf) // name
    
          val type = buf.readShort().toInt() and 0xffff
          buf.readShort() // class
          @Suppress("UNUSED_VARIABLE")
          val ttl = buf.readInt().toLong() and 0xffffffffL // ttl
          val length = buf.readShort().toInt() and 0xffff
    
          if (type == TYPE_A || type == TYPE_AAAA) {
            val bytes = ByteArray(length)
            buf.read(bytes)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/NameServicePacketTest.java

            packet.recordClass = NameServicePacket.IN;
            packet.ttl = 100;
            packet.rDataLength = 0; // Will be set by writeRDataWireFormat
    
            // TestNameServicePacket.writeRDataWireFormat returns 0
            int written = packet.writeResourceRecordWireFormat(dst, 0);
            assertEquals(12, written); // 2 (pointer) + 2 (type) + 2 (class) + 4 (ttl) + 2 (rDataLength) + 0 (rData)
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertThrows(IllegalStateException.class, () -> closedAuth.getPasswordAsCharArray());
        }
    
        /**
         * Test authentication TTL (Time To Live)
         */
        @Test
        @DisplayName("Test authentication TTL expiration")
        public void testAuthenticationTTL() throws InterruptedException {
            NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("user", "TTLTestPass123!");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/DfsTest.java

                configMockedStatic.close();
        }
    
        @Test
        void testCacheEntry() {
            // Test with a specific TTL
            long ttl = 600; // 10 minutes
            Dfs.CacheEntry cacheEntry = new Dfs.CacheEntry(ttl);
            long expectedExpiration = System.currentTimeMillis() + ttl * 1000L;
            assertTrue(cacheEntry.expiration >= expectedExpiration - 100 && cacheEntry.expiration <= expectedExpiration + 100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top