cachekey

package
v3.8.2-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	BlackIDsKey = "BLACK_IDS:"
	IsBlackKey  = "IS_BLACK:" // local cache
)
View Source
const (
	ConversationKey                          = "CONVERSATION:"
	ConversationIDsKey                       = "CONVERSATION_IDS:"
	NotNotifyConversationIDsKey              = "NOT_NOTIFY_CONVERSATION_IDS:"
	PinnedConversationIDsKey                 = "PINNED_CONVERSATION_IDS:"
	ConversationIDsHashKey                   = "CONVERSATION_IDS_HASH:"
	ConversationHasReadSeqKey                = "CONVERSATION_HAS_READ_SEQ:"
	RecvMsgOptKey                            = "RECV_MSG_OPT:"
	SuperGroupRecvMsgNotNotifyUserIDsKey     = "SUPER_GROUP_RECV_MSG_NOT_NOTIFY_USER_IDS:"
	SuperGroupRecvMsgNotNotifyUserIDsHashKey = "SUPER_GROUP_RECV_MSG_NOT_NOTIFY_USER_IDS_HASH:"
	ConversationNotReceiveMessageUserIDsKey  = "CONVERSATION_NOT_RECEIVE_MESSAGE_USER_IDS:"
	ConversationUserMaxKey                   = "CONVERSATION_USER_MAX:"
)
View Source
const (
	FriendIDsKey        = "FRIEND_IDS:"
	TwoWayFriendsIDsKey = "COMMON_FRIENDS_IDS:"
	FriendKey           = "FRIEND_INFO:"
	IsFriendKey         = "IS_FRIEND:" // local cache key
	//FriendSyncSortUserIDsKey = "FRIEND_SYNC_SORT_USER_IDS:"
	FriendMaxVersionKey = "FRIEND_MAX_VERSION:"
)
View Source
const (
	GroupInfoKey                = "GROUP_INFO:"
	GroupMemberIDsKey           = "GROUP_MEMBER_IDS:"
	GroupMembersHashKey         = "GROUP_MEMBERS_HASH2:"
	GroupMemberInfoKey          = "GROUP_MEMBER_INFO:"
	JoinedGroupsKey             = "JOIN_GROUPS_KEY:"
	GroupMemberNumKey           = "GROUP_MEMBER_NUM_CACHE:"
	GroupRoleLevelMemberIDsKey  = "GROUP_ROLE_LEVEL_MEMBER_IDS:"
	GroupAdminLevelMemberIDsKey = "GROUP_ADMIN_LEVEL_MEMBER_IDS:"
	GroupMemberMaxVersionKey    = "GROUP_MEMBER_MAX_VERSION:"
	GroupJoinMaxVersionKey      = "GROUP_JOIN_MAX_VERSION:"
)
View Source
const (
	OnlineKey     = "ONLINE:"
	OnlineChannel = "online_change"
	OnlineExpire  = time.Hour / 2
)
View Source
const (
	MallocSeq        = "MALLOC_SEQ:"
	MallocMinSeqLock = "MALLOC_MIN_SEQ:"

	SeqUserMaxSeq  = "SEQ_USER_MAX:"
	SeqUserMinSeq  = "SEQ_USER_MIN:"
	SeqUserReadSeq = "SEQ_USER_READ:"
)
View Source
const (
	UserInfoKey             = "USER_INFO:"
	UserGlobalRecvMsgOptKey = "USER_GLOBAL_RECV_MSG_OPT_KEY:"
)
View Source
const (
	UidPidToken = "UID_PID_TOKEN_STATUS:"
)

Variables

This section is empty.

Functions

func GetAllPlatformTokenKey

func GetAllPlatformTokenKey(userID string) []string

func GetBlackIDsKey

func GetBlackIDsKey(ownerUserID string) string

func GetConversationHasReadSeqKey

func GetConversationHasReadSeqKey(ownerUserID, conversationID string) string

func GetConversationIDsKey

func GetConversationIDsKey(ownerUserID string) string

func GetConversationKey

func GetConversationKey(ownerUserID, conversationID string) string

func GetConversationNotReceiveMessageUserIDsKey

func GetConversationNotReceiveMessageUserIDsKey(conversationID string) string

func GetConversationUserMaxVersionKey

func GetConversationUserMaxVersionKey(userID string) string

func GetFcmAccountTokenKey

func GetFcmAccountTokenKey(account string, platformID int) string

func GetFriendIDsKey

func GetFriendIDsKey(ownerUserID string) string

func GetFriendKey

func GetFriendKey(ownerUserID, friendUserID string) string

func GetFriendMaxVersionKey

func GetFriendMaxVersionKey(ownerUserID string) string

func GetGetuiTaskIDKey

func GetGetuiTaskIDKey() string

func GetGetuiTokenKey

func GetGetuiTokenKey() string

func GetGroupInfoKey

func GetGroupInfoKey(groupID string) string

func GetGroupMemberIDsKey

func GetGroupMemberIDsKey(groupID string) string

func GetGroupMemberInfoKey

func GetGroupMemberInfoKey(groupID, userID string) string

func GetGroupMemberMaxVersionKey

func GetGroupMemberMaxVersionKey(groupID string) string

func GetGroupMemberNumKey

func GetGroupMemberNumKey(groupID string) string

func GetGroupMembersHashKey

func GetGroupMembersHashKey(groupID string) string

func GetGroupRoleLevelMemberIDsKey

func GetGroupRoleLevelMemberIDsKey(groupID string, roleLevel int32) string

func GetIsBlackIDsKey

func GetIsBlackIDsKey(possibleBlackUserID, userID string) string

func GetIsFriendKey

func GetIsFriendKey(possibleFriendUserID, userID string) string

func GetJoinGroupMaxVersionKey

func GetJoinGroupMaxVersionKey(userID string) string

func GetJoinedGroupsKey

func GetJoinedGroupsKey(userID string) string

func GetLockMessageTypeKey

func GetLockMessageTypeKey(clientMsgID string, TypeKey string) string

func GetMallocMinSeqKey

func GetMallocMinSeqKey(conversationID string) string

func GetMallocSeqKey

func GetMallocSeqKey(conversationID string) string

func GetMessageCacheKey

func GetMessageCacheKey(conversationID string, seq int64) string

func GetMessageDelUserListKey

func GetMessageDelUserListKey(conversationID string, seq int64) string

func GetMessageReactionExKey

func GetMessageReactionExKey(clientMsgID string, sessionType int32) string

func GetMinioImageThumbnailKey

func GetMinioImageThumbnailKey(key string, format string, width int, height int) string

func GetNotNotifyConversationIDsKey added in v3.8.1

func GetNotNotifyConversationIDsKey(ownerUserID string) string

func GetObjectImageInfoKey

func GetObjectImageInfoKey(key string) string

func GetObjectKey

func GetObjectKey(engine string, name string) string

func GetOnlineKey

func GetOnlineKey(userID string) string

func GetOnlineKeyUserID added in v3.8.1

func GetOnlineKeyUserID(key string) string

func GetPinnedConversationIDs added in v3.8.1

func GetPinnedConversationIDs(ownerUserID string) string

func GetPlatformIDByTokenKey

func GetPlatformIDByTokenKey(key string) int

func GetRecvMsgOptKey

func GetRecvMsgOptKey(ownerUserID, conversationID string) string

func GetS3Key

func GetS3Key(engine string, name string) string

func GetSendMsgKey

func GetSendMsgKey(id string) string

func GetSeqUserMaxSeqKey

func GetSeqUserMaxSeqKey(conversationID string, userID string) string

func GetSeqUserMinSeqKey

func GetSeqUserMinSeqKey(conversationID string, userID string) string

func GetSeqUserReadSeqKey

func GetSeqUserReadSeqKey(conversationID string, userID string) string

func GetSuperGroupRecvNotNotifyUserIDsHashKey

func GetSuperGroupRecvNotNotifyUserIDsHashKey(groupID string) string

func GetSuperGroupRecvNotNotifyUserIDsKey

func GetSuperGroupRecvNotNotifyUserIDsKey(groupID string) string

func GetTokenKey

func GetTokenKey(userID string, platformID int) string

func GetTwoWayFriendsIDsKey

func GetTwoWayFriendsIDsKey(ownerUserID string) string

func GetUserBadgeUnreadCountSumKey

func GetUserBadgeUnreadCountSumKey(userID string) string

func GetUserConversationIDsHashKey

func GetUserConversationIDsHashKey(ownerUserID string) string

func GetUserDelListKey

func GetUserDelListKey(conversationID, userID string) string

func GetUserGlobalRecvMsgOptKey

func GetUserGlobalRecvMsgOptKey(userID string) string

func GetUserInfoKey

func GetUserInfoKey(userID string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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