MCPcopy
hub / github.com/tjfoc/gmsm / lruSessionCache

Struct lruSessionCache

gmtls/common.go:873–879  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

871// lruSessionCache is a ClientSessionCache implementation that uses an LRU
872// caching strategy.
873type lruSessionCache struct {
874 sync.Mutex
875
876 m map[string]*list.Element
877 q *list.List
878 capacity int
879}
880
881type lruSessionCacheEntry struct {
882 sessionKey string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected