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

Method GetCachedAllGroupsInfo

client/cache.go:99–106  ·  view source on GitHub ↗

GetCachedAllGroupsInfo 获取所有群信息(缓存)

()

Source from the content-addressed store, hash-verified

97
98// GetCachedAllGroupsInfo 获取所有群信息(缓存)
99func (c *QQClient) GetCachedAllGroupsInfo() map[uint32]*entity.Group {
100 if c.cache.GroupInfoCacheIsEmpty() {
101 if err := c.RefreshAllGroupsInfo(); err != nil {
102 return nil
103 }
104 }
105 return c.cache.GetAllGroupsInfo()
106}
107
108// GetCachedMemberInfo 获取群成员信息(缓存)
109func (c *QQClient) GetCachedMemberInfo(uin, groupUin uint32) *entity.GroupMember {

Callers

nothing calls this directly

Calls 3

RefreshAllGroupsInfoMethod · 0.95
GroupInfoCacheIsEmptyMethod · 0.80
GetAllGroupsInfoMethod · 0.45

Tested by

no test coverage detected