//
pkg.gl
Category
github.com/sagernet/tailscale
util
cache
package
1.79.0-mod
Repository:
https://github.com/sagernet/tailscale.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
0
Files
109 SLOC
#
Functions
NewLocking
NewLocking creates a new Locking cache wrapping inner.
#
Structs
Locking
Locking wraps an inner Cache implementation with a mutex, making it safe for concurrent use.
None
None provides no caching and always calls the provided FillFunc.
Single
Single is a simple in-memory cache that stores a single value until a defined time before it is re-fetched.
#
Interfaces
Cache
Cache is the interface for the cache types in this package.
#
Type aliases
FillFunc
FillFunc is the signature of a function for filling a cache.