MCPcopy Create free account
hub / github.com/ConnectAI-E/Feishu-OpenAI-Stream-Chatbot / GetSessionCache

Function GetSessionCache

code/services/sessionCache.go:139–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func GetSessionCache() SessionServiceCacheInterface {
140 if sessionServices == nil {
141 sessionServices = &SessionService{cache: cache.New(time.Hour*12, time.Hour*1)}
142 }
143 return sessionServices
144}
145
146func getStrPoolTotalLength(strPool []openai.Messages) int {
147 var total int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected