MCPcopy Index your code
hub / github.com/XTLS/Go / lruSessionCache

Struct lruSessionCache

common.go:1384–1390  ·  view source on GitHub ↗

lruSessionCache is a ClientSessionCache implementation that uses an LRU caching strategy.

Source from the content-addressed store, hash-verified

1382// lruSessionCache is a ClientSessionCache implementation that uses an LRU
1383// caching strategy.
1384type lruSessionCache struct {
1385 sync.Mutex
1386
1387 m map[string]*list.Element
1388 q *list.List
1389 capacity int
1390}
1391
1392type lruSessionCacheEntry struct {
1393 sessionKey string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected