MCPcopy
hub / github.com/ConnectAI-E/feishu-openai / Set

Method Set

code/services/sessionCache.go:83–86  ·  view source on GitHub ↗

implement Set interface

(sessionId string, sessionMeta *SessionMeta)

Source from the content-addressed store, hash-verified

81
82// implement Set interface
83func (s *SessionService) Set(sessionId string, sessionMeta *SessionMeta) {
84 maxCacheTime := time.Hour * 12
85 s.cache.Set(sessionId, sessionMeta, maxCacheTime)
86}
87
88func (s *SessionService) GetMode(sessionId string) SessionMode {
89 // Get the session mode from the cache.

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected