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

Struct lruSessionCache

common.go:1636–1642  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1634// lruSessionCache is a ClientSessionCache implementation that uses an LRU
1635// caching strategy.
1636type lruSessionCache struct {
1637 sync.Mutex
1638
1639 m map[string]*list.Element
1640 q *list.List
1641 capacity int
1642}
1643
1644type lruSessionCacheEntry struct {
1645 sessionKey string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected