You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
324 B
14 lines
324 B
package cache
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type BlackCache interface {
|
|
BatchDeleter
|
|
CloneBlackCache() BlackCache
|
|
GetBlackIDs(ctx context.Context, userID string) (blackIDs []string, err error)
|
|
// del user's blackIDs msgCache, exec when a user's black list changed
|
|
DelBlackIDs(ctx context.Context, userID string) BlackCache
|
|
}
|