package
1.79.0-mod
Repository: https://github.com/sagernet/tailscale.git
Documentation: pkg.go.dev

# Functions

NewLocking creates a new Locking cache wrapping inner.

# Structs

Locking wraps an inner Cache implementation with a mutex, making it safe for concurrent use.
None provides no caching and always calls the provided FillFunc.
Single is a simple in-memory cache that stores a single value until a defined time before it is re-fetched.

# Interfaces

Cache is the interface for the cache types in this package.

# Type aliases

FillFunc is the signature of a function for filling a cache.