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

Method GetCachedMembersInfo

client/cache.go:123–134  ·  view source on GitHub ↗

GetCachedMembersInfo 获取指定群所有群成员信息(缓存)

(groupUin uint32)

Source from the content-addressed store, hash-verified

121
122// GetCachedMembersInfo 获取指定群所有群成员信息(缓存)
123func (c *QQClient) GetCachedMembersInfo(groupUin uint32) map[uint32]*entity.GroupMember {
124 if c.cache.GroupMemberCacheIsEmpty(groupUin) {
125 if err := c.RefreshGroupMembersCache(groupUin); err != nil {
126 return nil
127 }
128 }
129 if gm := c.cache.GetGroupMembers(groupUin); gm != nil {
130 return gm
131 }
132 _ = c.RefreshGroupMembersCache(groupUin)
133 return c.cache.GetGroupMembers(groupUin)
134}
135
136// GetCachedRkeyInfo 获取指定类型的RKey信息(缓存)
137func (c *QQClient) GetCachedRkeyInfo(rkeyType entity.RKeyType) *entity.RKeyInfo {

Callers

nothing calls this directly

Calls 3

GetGroupMembersMethod · 0.80

Tested by

no test coverage detected