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

Method IfProcessed

code/services/msgCache.go:19–22  ·  view source on GitHub ↗
(msgId string)

Source from the content-addressed store, hash-verified

17var msgService *MsgService
18
19func (u MsgService) IfProcessed(msgId string) bool {
20 _, found := u.cache.Get(msgId)
21 return found
22}
23func (u MsgService) TagProcessed(msgId string) {
24 u.cache.Set(msgId, true, time.Minute*30)
25}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected