MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / GroupMemberCacheIsEmpty

Method GroupMemberCacheIsEmpty

client/internal/cache/cache.go:128–133  ·  view source on GitHub ↗

GroupMemberCacheIsEmpty 指定群的群成员缓存是否为空

(groupUin uint32)

Source from the content-addressed store, hash-verified

126
127// GroupMemberCacheIsEmpty 指定群的群成员缓存是否为空
128func (c *Cache) GroupMemberCacheIsEmpty(groupUin uint32) bool {
129 if group, ok := getCacheOf[Cache](c, groupUin); ok {
130 return !hasRefreshed[entity.GroupMember](group)
131 }
132 return true
133}
134
135// GroupInfoCacheIsEmpty 群信息缓存是否为空
136func (c *Cache) GroupInfoCacheIsEmpty() bool {

Callers 4

GetUIDMethod · 0.80
GetUinMethod · 0.80
GetCachedMemberInfoMethod · 0.80
GetCachedMembersInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected