Get returns the [ClientSessionState] value associated with a given key. It returns (nil, false) if no value is found.
(sessionKey string)
| 1698 | // Get returns the [ClientSessionState] value associated with a given key. It |
| 1699 | // returns (nil, false) if no value is found. |
| 1700 | func (c *lruSessionCache) Get(sessionKey string) (*ClientSessionState, bool) { |
| 1701 | c.Lock() |
| 1702 | defer c.Unlock() |
| 1703 | |
| 1704 | if elem, ok := c.m[sessionKey]; ok { |
| 1705 | c.q.MoveToFront(elem) |
| 1706 | return elem.Value.(*lruSessionCacheEntry).state, true |
| 1707 | } |
| 1708 | return nil, false |
| 1709 | } |
| 1710 | |
| 1711 | var emptyConfig Config |
| 1712 |
nothing calls this directly
no outgoing calls
no test coverage detected