- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for yyerror (0.15 sec)
-
internal/cachevalue/cache.go
type Cache[T any] struct { // updateFn must return an updated value. // If an error is returned the cached value is not set. // Only one caller will call this function at any time, others will be blocking. // The returned value can no longer be modified once returned. // Should be set before calling Get(). updateFn func() (T, error) // ttl for a cached value. ttl time.Duration opts Opts
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Mar 01 16:00:42 GMT 2024 - 4.2K bytes - Viewed (0) -
internal/config/cache/cache.go
mcacheV1Update = "/_mcache/v1/update" mcacheV1Delete = "/_mcache/v1/delete" ) // Get performs conditional check and returns the cached object info if any. func (c Config) Get(r *CondCheck) (*ObjectInfo, error) { configLock.RLock() defer configLock.RUnlock() if !c.Enable { return nil, nil } if c.Endpoint == "" { // Endpoint not set, make this a no-op return nil, nil }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 5.6K bytes - Viewed (0)