package
1.18.1
Repository: https://github.com/briteming/tun2socks.git
Documentation: pkg.go.dev

# Functions

New return *Cache.
NewLRUCache creates an LruCache.
WithAge defined element max age (second).
WithSize defined max length of LruCache.
WithUpdateAgeOnGet update expires when Get element.

# Structs

Cache store element with a expired time.
LruCache is a thread-safe, in-memory lru-cache that evicts the least recently used entries from memory when (if set) the entries are older than maxAge (in seconds).

# Type aliases

Option is part of Functional Options Pattern.