2024-07-16 10:46:21 +08:00
|
|
|
package cache
|
|
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
|
|
type OnlineCache interface {
|
|
|
|
|
GetOnline(ctx context.Context, userID string) ([]int32, error)
|
|
|
|
|
SetUserOnline(ctx context.Context, userID string, online, offline []int32) error
|
2024-09-12 10:38:17 +08:00
|
|
|
GetAllOnlineUsers(ctx context.Context, cursor uint64) (map[string][]int32, uint64, error)
|
2024-07-16 10:46:21 +08:00
|
|
|
}
|