cache

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func (*Cache) FriendCacheIsEmpty

func (c *Cache) FriendCacheIsEmpty() bool

FriendCacheIsEmpty 好友信息缓存是否为空

func (*Cache) GetAllFriends added in v0.0.11

func (c *Cache) GetAllFriends() map[uint32]*entity.Friend

GetAllFriends 获取所有好友信息

func (*Cache) GetAllGroupsInfo

func (c *Cache) GetAllGroupsInfo() map[uint32]*entity.Group

GetAllGroupsInfo 获取所有群信息

func (*Cache) GetAllRkeyInfo added in v0.0.25

func (c *Cache) GetAllRkeyInfo() entity.RKeyMap

GetAllRkeyInfo 获取所有RKey信息

func (*Cache) GetFriend

func (c *Cache) GetFriend(uin uint32) *entity.Friend

GetFriend 获取好友信息

func (*Cache) GetGroupInfo

func (c *Cache) GetGroupInfo(groupUin uint32) *entity.Group

GetGroupInfo 获取群信息

func (*Cache) GetGroupMember

func (c *Cache) GetGroupMember(uin, groupUin uint32) *entity.GroupMember

GetGroupMember 获取群成员信息

func (*Cache) GetGroupMembers

func (c *Cache) GetGroupMembers(groupUin uint32) map[uint32]*entity.GroupMember

GetGroupMembers 获取指定群所有群成员信息

func (*Cache) GetRKeyInfo added in v0.0.25

func (c *Cache) GetRKeyInfo(rkeyType entity.RKeyType) *entity.RKeyInfo

GetRKeyInfo 获取指定类型的RKey信息

func (*Cache) GetUid

func (c *Cache) GetUid(uin uint32, groupUin ...uint32) string

GetUid 根据uin获取uid

func (*Cache) GetUin

func (c *Cache) GetUin(uid string, groupUin ...uint32) (uin uint32)

GetUin 根据uid获取uin

func (*Cache) GroupInfoCacheIsEmpty

func (c *Cache) GroupInfoCacheIsEmpty() bool

GroupInfoCacheIsEmpty 群信息缓存是否为空

func (*Cache) GroupMemberCacheIsEmpty

func (c *Cache) GroupMemberCacheIsEmpty(groupUin uint32) bool

GroupMemberCacheIsEmpty 指定群的群成员缓存是否为空

func (*Cache) GroupMembersCacheIsEmpty

func (c *Cache) GroupMembersCacheIsEmpty() bool

GroupMembersCacheIsEmpty 群成员缓存是否为空

func (*Cache) RefreshAll

func (c *Cache) RefreshAll(friendCache map[uint32]*entity.Friend, groupCache map[uint32]*entity.Group, groupMemberCache map[uint32]map[uint32]*entity.GroupMember, rkeyCache entity.RKeyMap)

func (*Cache) RefreshAllFriend

func (c *Cache) RefreshAllFriend(friendCache map[uint32]*entity.Friend)

RefreshAllFriend 刷新所有好友缓存

func (*Cache) RefreshAllGroup

func (c *Cache) RefreshAllGroup(groupCache map[uint32]*entity.Group)

RefreshAllGroup 刷新所有群的群信息缓存

func (*Cache) RefreshAllGroupMembers

func (c *Cache) RefreshAllGroupMembers(groupMemberCache map[uint32]map[uint32]*entity.GroupMember)

RefreshAllGroupMembers 刷新所有群的群员缓存

func (*Cache) RefreshAllRKeyInfo added in v0.0.25

func (c *Cache) RefreshAllRKeyInfo(rkeyCache entity.RKeyMap)

RefreshAllRKeyInfo 刷新所有RKey缓存

func (*Cache) RefreshFriend

func (c *Cache) RefreshFriend(friend *entity.Friend)

RefreshFriend 刷新一个好友的缓存

func (*Cache) RefreshGroup

func (c *Cache) RefreshGroup(group *entity.Group)

RefreshGroup 刷新一个群的群信息缓存

func (*Cache) RefreshGroupMember

func (c *Cache) RefreshGroupMember(groupUin uint32, groupMember *entity.GroupMember)

RefreshGroupMember 刷新指定群的一个群成员缓存

func (*Cache) RefreshGroupMembers

func (c *Cache) RefreshGroupMembers(groupUin uint32, groupMembers map[uint32]*entity.GroupMember)

RefreshGroupMembers 刷新一个群内的所有群成员缓存

func (*Cache) RkeyInfoCacheIsEmpty added in v0.0.25

func (c *Cache) RkeyInfoCacheIsEmpty() bool

RkeyInfoCacheIsEmpty RKey缓存是否为空

func (*Cache) RkeyInfoCacheIsExpired added in v0.0.25

func (c *Cache) RkeyInfoCacheIsExpired() bool

type KeyType added in v0.0.25

type KeyType interface {
	~uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL