pull/236/head
wenxu12345 3 years ago
parent 1ff7ebb04a
commit 8315c61240

@ -9,6 +9,7 @@ import (
"context"
"errors"
"fmt"
"github.com/garyburd/redigo/redis"
"github.com/mitchellh/mapstructure"
"strconv"
"time"
@ -88,6 +89,9 @@ func (d *DataBases) CleanUpOneUserAllMsgFromRedis(userID string) error {
ctx := context.Background()
key := messageCache + userID + "_" + "*"
vals, err := d.rdb.Keys(ctx, key).Result()
if err == redis.ErrNil {
return nil
}
if err != nil {
return utils.Wrap(err, "")
}

Loading…
Cancel
Save