Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for ttl (0.03 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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,
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Apr 25 08:22:26 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

          LoadingCache<String, Integer> cache,
          CountingRemovalListener<String, Integer> removalListener,
          WatchedCreatorLoader loader,
          FakeTicker ticker,
          String keyPrefix,
          long ttl) {
        loader.setKeyPrefix(keyPrefix);
    
        int shift1 = 10 + VALUE_PREFIX;
        loader.setValuePrefix(shift1);
        // fill with initial data
        for (int i = 0; i < 10; i++) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  3. 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.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.5K bytes
    - Click Count (3)
  4. gorm.go

    	// DryRun generate sql without execute
    	DryRun bool
    	// PrepareStmt executes the given query in cached statement
    	PrepareStmt bool
    	// PrepareStmt cache support LRU expired,
    	// default maxsize=int64 Max value and ttl=1h
    	PrepareStmtMaxSize int
    	PrepareStmtTTL     time.Duration
    
    	// DisableAutomaticPing
    	DisableAutomaticPing bool
    	// DisableForeignKeyConstraintWhenMigrating
    	DisableForeignKeyConstraintWhenMigrating bool
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Tue Aug 26 06:24:29 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  5. cmd/server-main.go

    	cli.StringFlag{
    		Name:   "interface",
    		Usage:  "bind to right VRF device for MinIO services",
    		Hidden: true,
    		EnvVar: "MINIO_INTERFACE",
    	},
    	cli.DurationFlag{
    		Name:   "dns-cache-ttl",
    		Usage:  "custom DNS cache TTL",
    		Hidden: true,
    		Value: func() time.Duration {
    			if orchestrated {
    				return 30 * time.Second
    			}
    			return 10 * time.Minute
    		}(),
    		EnvVar: "MINIO_DNS_CACHE_TTL",
    	},
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue May 27 15:18:36 GMT 2025
    - 35.9K bytes
    - Click Count (4)
Back to Top