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

Method GetCachedAllFriendsInfo

client/cache.go:75–82  ·  view source on GitHub ↗

GetCachedAllFriendsInfo 获取所有好友信息(缓存)

()

Source from the content-addressed store, hash-verified

73
74// GetCachedAllFriendsInfo 获取所有好友信息(缓存)
75func (c *QQClient) GetCachedAllFriendsInfo() map[uint32]*entity.User {
76 if c.cache.FriendCacheIsEmpty() {
77 if err := c.RefreshFriendCache(); err != nil {
78 return nil
79 }
80 }
81 return c.cache.GetAllFriends()
82}
83
84// GetCachedGroupInfo 获取群信息(缓存)
85func (c *QQClient) GetCachedGroupInfo(groupUin uint32) *entity.Group {

Callers

nothing calls this directly

Calls 3

RefreshFriendCacheMethod · 0.95
FriendCacheIsEmptyMethod · 0.80
GetAllFriendsMethod · 0.80

Tested by

no test coverage detected