mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-01 12:39:18 +08:00
dtm
This commit is contained in:
parent
cbb127ff38
commit
960e3d34eb
@ -28,7 +28,7 @@ const (
|
|||||||
func init() {
|
func init() {
|
||||||
fmt.Println("init to del old keys")
|
fmt.Println("init to del old keys")
|
||||||
for _, key := range []string{groupCache, friendRelationCache, blackListCache, userInfoCache, groupInfoCache, groupOwnerIDCache, joinedGroupListCache,
|
for _, key := range []string{groupCache, friendRelationCache, blackListCache, userInfoCache, groupInfoCache, groupOwnerIDCache, joinedGroupListCache,
|
||||||
groupMemberInfoCache, groupAllMemberInfoCache} {
|
groupMemberInfoCache, groupAllMemberInfoCache, allFriendInfoCache} {
|
||||||
var cursor uint64
|
var cursor uint64
|
||||||
var n int
|
var n int
|
||||||
for {
|
for {
|
||||||
@ -39,7 +39,7 @@ func init() {
|
|||||||
panic(err.Error())
|
panic(err.Error())
|
||||||
}
|
}
|
||||||
n += len(keys)
|
n += len(keys)
|
||||||
fmt.Printf("\n %s key found %d keys: %v, current cursor %d\n", key, n, keys, cursor)
|
//fmt.Printf("\n %s key found %d keys: %v, current cursor %d\n", key, n, keys, cursor)
|
||||||
if len(keys) > 0 {
|
if len(keys) > 0 {
|
||||||
err = db.DB.RDB.Del(context.Background(), keys...).Err()
|
err = db.DB.RDB.Del(context.Background(), keys...).Err()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user