MCPcopy Create free account
hub / github.com/devfeel/dotweb / SessionAccess

Method SessionAccess

session/store_runtime.go:118–127  ·  view source on GitHub ↗

SessionAccess expand time of session store by id in memory session

(sessionId string)

Source from the content-addressed store, hash-verified

116
117// SessionAccess expand time of session store by id in memory session
118func (store *RuntimeStore) SessionAccess(sessionId string) error {
119 store.lock.Lock()
120 defer store.lock.Unlock()
121 if element, ok := store.sessions[sessionId]; ok {
122 element.Value.(*SessionState).timeAccessed = time.Now()
123 store.list.MoveToFront(element)
124 return nil
125 }
126 return nil
127}

Callers 3

SessionReadMethod · 0.95
SessionUpdateMethod · 0.95

Calls

no outgoing calls

Tested by 1