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

Method RefreshFriend

client/internal/cache/operation.go:20–22  ·  view source on GitHub ↗

RefreshFriend 刷新一个好友的缓存

(friend *entity.User)

Source from the content-addressed store, hash-verified

18
19// RefreshFriend 刷新一个好友的缓存
20func (c *Cache) RefreshFriend(friend *entity.User) {
21 setCacheOf(c, friend.Uin, friend)
22}
23
24// RefreshAllFriend 刷新所有好友缓存
25func (c *Cache) RefreshAllFriend(friendCache map[uint32]*entity.User) {

Callers 1

RefreshFriendCacheMethod · 0.80

Calls 1

setCacheOfFunction · 0.85

Tested by

no test coverage detected