1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00

use redis

This commit is contained in:
2023-10-12 14:46:30 +08:00
parent 0df55ed551
commit bcfb177fd9
4 changed files with 54 additions and 18 deletions

View File

@ -6,7 +6,7 @@ import (
"strconv"
"time"
"github.com/go-redis/redis/v8"
"github.com/charlienet/go-mixed/redis"
)
const (
@ -38,12 +38,12 @@ var _ bitStore = &redisBitSet{}
// 使用Redis存储位图
type redisBitSet struct {
store *redis.Client
store redis.Client
key string
bits uint
}
func newRedisStore(store *redis.Client, key string, bits uint) *redisBitSet {
func newRedisStore(store redis.Client, key string, bits uint) *redisBitSet {
return &redisBitSet{
store: store,
key: key,