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

Method RefreshAllGroupMembers

client/internal/cache/operation.go:47–55  ·  view source on GitHub ↗

RefreshAllGroupMembers 刷新所有群的群员缓存

(groupMemberCache map[uint32]map[uint32]*entity.GroupMember)

Source from the content-addressed store, hash-verified

45
46// RefreshAllGroupMembers 刷新所有群的群员缓存
47func (c *Cache) RefreshAllGroupMembers(groupMemberCache map[uint32]map[uint32]*entity.GroupMember) {
48 newc := make(map[uint32]*Cache, len(groupMemberCache)*2)
49 for groupUin, v := range groupMemberCache {
50 group := &Cache{}
51 refreshAllCacheOf(group, v)
52 newc[groupUin] = group
53 }
54 refreshAllCacheOf(c, newc)
55}
56
57// RefreshGroup 刷新一个群的群信息缓存
58func (c *Cache) RefreshGroup(group *entity.Group) {

Callers 2

RefreshAllMethod · 0.95

Calls 1

refreshAllCacheOfFunction · 0.85

Tested by

no test coverage detected