mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
16 lines
311 B
Go
16 lines
311 B
Go
package cachekey
|
|
|
|
const (
|
|
BlackIDsKey = "BLACK_IDS:"
|
|
IsBlackKey = "IS_BLACK:" // local cache
|
|
)
|
|
|
|
func GetBlackIDsKey(ownerUserID string) string {
|
|
return BlackIDsKey + ownerUserID
|
|
|
|
}
|
|
|
|
func GetIsBlackIDsKey(possibleBlackUserID, userID string) string {
|
|
return IsBlackKey + userID + "-" + possibleBlackUserID
|
|
}
|