util/cache: fix missing interface methods (#11275)
Updates #cleanup Change-Id: Ib3a33a7609530ef8c9f3f58fc607a61e8655c4b5 Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
This commit is contained in:
2
util/cache/single.go
vendored
2
util/cache/single.go
vendored
@ -25,6 +25,8 @@ type Single[K comparable, V any] struct {
|
||||
ServeExpired bool
|
||||
}
|
||||
|
||||
var _ Cache[int, int] = (*Single[int, int])(nil)
|
||||
|
||||
// Get will return the cached value, if any, or fill the cache by calling f and
|
||||
// return the corresponding value. If f returns an error and c.ServeExpired is
|
||||
// true, then a previous expired value can be returned with no error.
|
||||
|
Reference in New Issue
Block a user