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.
21 lines
319 B
21 lines
319 B
/**
|
|
* @Auth:ShenZ
|
|
* @Description:
|
|
* @CreateDate:2022/06/15 14:57:55
|
|
*/
|
|
package models
|
|
|
|
import (
|
|
"context"
|
|
"ginchat/utils"
|
|
"time"
|
|
)
|
|
|
|
/**
|
|
设置在线用户到redis缓存
|
|
**/
|
|
func SetUserOnlineInfo(key string, val []byte, timeTTL time.Duration) {
|
|
ctx := context.Background()
|
|
utils.Red.Set(ctx, key, val, timeTTL)
|
|
}
|