2024-01-08 15:39:39 +08:00
|
|
|
package cachekey
|
|
|
|
|
|
|
|
|
|
const (
|
2024-01-12 15:41:05 +08:00
|
|
|
BlackIDsKey = "BLACK_IDS:"
|
|
|
|
|
IsBlackKey = "IS_BLACK:" // local cache
|
2024-01-08 15:39:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func GetBlackIDsKey(ownerUserID string) string {
|
2024-01-12 15:41:05 +08:00
|
|
|
return BlackIDsKey + ownerUserID
|
2024-01-08 15:39:39 +08:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetIsBlackIDsKey(possibleBlackUserID, userID string) string {
|
2024-01-12 15:41:05 +08:00
|
|
|
return IsBlackKey + userID + "-" + possibleBlackUserID
|
2024-01-08 15:39:39 +08:00
|
|
|
}
|