Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for store (0.17 sec)

  1. internal/cachevalue/cache.go

    	if err != nil {
    		if t.opts.ReturnLastGood {
    			// Keep last good value.
    			v := t.valErr.Load()
    			if v != nil {
    				val = v.v
    			}
    		}
    	}
    	t.valErr.Store(&struct {
    		v T
    		e error
    	}{v: val, e: err})
    	t.lastUpdateMs.Store(time.Now().UnixMilli())
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 16:00:42 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. internal/config/cache/cache.go

    }
    
    // Config represents the subnet related configuration
    type Config struct {
    	// Flag indicating whether cache is enabled.
    	Enable bool `json:"enable"`
    
    	// Endpoint for caching uses remote mcache server to
    	// store and retrieve pre-condition check entities such as
    	// Etag and ModTime of an object + version
    	Endpoint string `json:"endpoint"`
    
    	// BlockSize indicates the maximum object size below which
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top