Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for TTL (0.03 sec)

  1. internal/cachevalue/cache.go

    // update function, making it ready for use.
    func NewFromFunc[T any](ttl time.Duration, opts Opts, update func(ctx context.Context) (T, error)) *Cache[T] {
    	return &Cache[T]{
    		ttl:      ttl,
    		updateFn: update,
    		opts:     opts,
    	}
    }
    
    // InitOnce initializes the cache with a TTL and an update function. It is
    // guaranteed to be called only once.
    func (t *Cache[T]) InitOnce(ttl time.Duration, opts Opts, update func(ctx context.Context) (T, error)) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/Dfs.java

    import java.io.*;
    
    public class Dfs {
    
        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 Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java

                return new String( "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 + "]" );
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/dfs/Referral.java

        }
    
    
        /**
         * @return the altPath
         */
        public final String getAltPath () {
            return this.altPath;
        }
    
    
        /**
         * @return the ttl
         */
        public final int getTtl () {
            return this.ttl;
        }
    
    
        /**
         * @return the rpath
         */
        public final String getRpath () {
            return this.rpath;
        }
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.2K bytes
    - Viewed (0)
  5. cmd/etcd.go

    	}
    }
    
    func saveKeyEtcdWithTTL(ctx context.Context, client *etcd.Client, key string, data []byte, ttl int64) error {
    	timeoutCtx, cancel := context.WithTimeout(ctx, defaultContextTimeout)
    	defer cancel()
    	lease, err := client.Grant(timeoutCtx, ttl)
    	if err != nil {
    		return etcdErrToErr(err, client.Endpoints())
    	}
    	_, err = client.Put(timeoutCtx, key, string(data), etcd.WithLease(lease.ID))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. pom.xml

    				<configuration>
    					<includes>
    						<include>**/**Test.java</include>
    					</includes>
    					<systemPropertyVariables>
    						<networkaddress.cache.ttl>-1</networkaddress.cache.ttl>
    						<networkaddress.cache.negative.ttl>-1</networkaddress.cache.negative.ttl>
    					</systemPropertyVariables>
    					<properties>
    						<property>
    							<name>listener</name>
    							<value>jcifs.tests.PrintingRunListener</value>
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Sep 26 04:40:32 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

                    + ",path=" + this.path + ",ttl=" + this.ttl + ",expiration=" + this.expiration + ",remain="
                    + ( this.expiration - System.currentTimeMillis() ) + "]";
        }
    
    
        /**
         * @return the ttl
         */
        public long getTtl () {
            return this.ttl;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:13:49 UTC 2021
    - 11K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/DfsReferral.java

            return "DfsReferral[pathConsumed=" + pathConsumed +
                ",server=" + server +
                ",share=" + share +
                ",link=" + link +
                ",path=" + path +
                ",ttl=" + ttl +
                ",expiration=" + expiration +
                ",resolveHashes=" + resolveHashes + "]";
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  9. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. internal/config/dns/types.go

    	Weight   int         `json:"weight,omitempty"`
    	Text     string      `json:"text,omitempty"`
    	Mail     bool        `json:"mail,omitempty"` // Be an MX record. Priority becomes Preference.
    	TTL      uint32      `json:"ttl,omitempty"`
    
    	// Holds info about when the entry was created first.
    	CreationDate time.Time `json:"creationDate"`
    
    	// When a SRV record with a "Host: IP-address" is added, we synthesize
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2K bytes
    - Viewed (0)
Back to top