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

Method RefreshGroupMembers

client/internal/cache/operation.go:40–44  ·  view source on GitHub ↗

RefreshGroupMembers 刷新一个群内的所有群成员缓存

(groupUin uint32, groupMembers map[uint32]*entity.GroupMember)

Source from the content-addressed store, hash-verified

38
39// RefreshGroupMembers 刷新一个群内的所有群成员缓存
40func (c *Cache) RefreshGroupMembers(groupUin uint32, groupMembers map[uint32]*entity.GroupMember) {
41 newc := &Cache{}
42 refreshAllCacheOf(newc, groupMembers)
43 setCacheOf(c, groupUin, newc)
44}
45
46// RefreshAllGroupMembers 刷新所有群的群员缓存
47func (c *Cache) RefreshAllGroupMembers(groupMemberCache map[uint32]map[uint32]*entity.GroupMember) {

Callers 1

Calls 2

refreshAllCacheOfFunction · 0.85
setCacheOfFunction · 0.85

Tested by

no test coverage detected