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

Method RefreshAll

client/internal/cache/operation.go:7–17  ·  view source on GitHub ↗
(
	friendCache map[uint32]*entity.User,
	groupCache map[uint32]*entity.Group,
	groupMemberCache map[uint32]map[uint32]*entity.GroupMember,
	rkeyCache entity.RKeyMap,
)

Source from the content-addressed store, hash-verified

5)
6
7func (c *Cache) RefreshAll(
8 friendCache map[uint32]*entity.User,
9 groupCache map[uint32]*entity.Group,
10 groupMemberCache map[uint32]map[uint32]*entity.GroupMember,
11 rkeyCache entity.RKeyMap,
12) {
13 c.RefreshAllFriend(friendCache)
14 c.RefreshAllGroup(groupCache)
15 c.RefreshAllGroupMembers(groupMemberCache)
16 c.RefreshAllRKeyInfo(rkeyCache)
17}
18
19// RefreshFriend 刷新一个好友的缓存
20func (c *Cache) RefreshFriend(friend *entity.User) {

Callers

nothing calls this directly

Calls 4

RefreshAllFriendMethod · 0.95
RefreshAllGroupMethod · 0.95
RefreshAllRKeyInfoMethod · 0.95

Tested by

no test coverage detected