添加自定义memorycache

This commit is contained in:
junleea 2025-09-16 20:02:41 +08:00
parent c0b8c7ba63
commit b4f721060f
1 changed files with 3 additions and 5 deletions

View File

@ -1,16 +1,14 @@
package worker
import (
"context"
"encoding/json"
"fmt"
"github.com/go-redis/redis/v8"
"strconv"
"time"
"videoplayer/proto"
)
import (
"context"
"encoding/json"
"github.com/go-redis/redis/v8"
)
var RedisClient *redis.Client // Redis 客户端, 用于连接 Redis 服务器
func InitRedis() error {