mirror of
https://github.com/sigcn/pg.git
synced 2025-10-14 11:03:41 +08:00
p2p: add cache for func PacketConn.relayPeer
This commit is contained in:
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@@ -33,7 +33,7 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
defaultCache = lru.New[string, *CacheValue[any]](1024)
|
||||
defaultCache = lru.New[string, *CacheValue[any]](2048)
|
||||
}
|
||||
|
||||
// LoadTTL load value by key from default cache pool
|
||||
|
Reference in New Issue
Block a user