( friendCache map[uint32]*entity.User, groupCache map[uint32]*entity.Group, groupMemberCache map[uint32]map[uint32]*entity.GroupMember, rkeyCache entity.RKeyMap, )
| 5 | ) |
| 6 | |
| 7 | func (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 刷新一个好友的缓存 |
| 20 | func (c *Cache) RefreshFriend(friend *entity.User) { |
nothing calls this directly
no test coverage detected