- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for TTL (0.03 sec)
-
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) -
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) -
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) -
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) -
internal/config/dns/etcd_dns.go
const etcdPathSeparator = "/" // create a new coredns service record for the bucket. func newCoreDNSMsg(ip string, port string, ttl uint32, t time.Time) ([]byte, error) { return json.Marshal(&SrvRecord{ Host: ip, Port: json.Number(port), TTL: ttl, CreationDate: t, }) } // Close closes the internal etcd client and cannot be used further func (c *CoreDNS) Close() error {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 26 15:03:08 UTC 2024 - 8K bytes - Viewed (0) -
src/main/java/jcifs/smb/DfsImpl.java
CacheEntry ( long ttl ) { this.expiration = System.currentTimeMillis() + ttl * 1000L; this.map = new ConcurrentHashMap<>(); } } private static class NegativeCacheEntry <T> extends CacheEntry<T> { /** * @param ttl */ NegativeCacheEntry ( long ttl ) { super(ttl); } }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:07:29 UTC 2023 - 29.1K bytes - Viewed (0) -
schema/naming.go
commonInitialisms = []string{"API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "LHS", "QPS", "RAM", "RHS", "RPC", "SLA", "SMTP", "SSH", "TLS", "TTL", "UID", "UI", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XSRF", "XSS"} commonInitialismsReplacer *strings.Replacer ) func init() { commonInitialismsForReplacer := make([]string, 0, len(commonInitialisms))
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 03:46:59 UTC 2024 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/config/PropertyConfiguration.java
this.vcNumber = 1; this.dfsDisabled = Config.getBoolean(p, "jcifs.smb.client.dfs.disabled", false); this.dfsTTL = Config.getLong(p, "jcifs.smb.client.dfs.ttl", 300); this.dfsStrictView = Config.getBoolean(p, "jcifs.smb.client.dfs.strictView", false); this.dfsConvertToFqdn = Config.getBoolean(p, "jcifs.smb.client.dfs.convertToFQDN", false);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:06:39 UTC 2023 - 8.9K bytes - Viewed (0) -
cmd/common-main.go
} func runDNSCache(ctx *cli.Context) { dnsTTL := ctx.Duration("dns-cache-ttl") // Check if we have configured a custom DNS cache TTL. if dnsTTL <= 0 { if orchestrated { dnsTTL = 30 * time.Second } else { dnsTTL = 10 * time.Minute } } // Call to refresh will refresh names in cache.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 21:50:11 UTC 2024 - 31.7K bytes - Viewed (0) -
cmd/iam-store.go
} err := store.saveMappedPolicy(ctx, cred.ParentUser, stsUser, false, mp, options{ttl: ttl}) if err != nil { return time.Time{}, err } cache.iamSTSPolicyMap.Store(cred.ParentUser, mp) } u := newUserIdentity(cred) err := store.saveUserIdentity(ctx, accessKey, stsUser, u, options{ttl: ttl}) if err != nil { return time.Time{}, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Oct 14 16:35:37 UTC 2024 - 83.2K bytes - Viewed (0)