zhangkun9038@dingtalk.com 2025-01-23 12:21:34 +08:00
parent 1a7819e703
commit 62a37d7342

View File

@ -699,9 +699,9 @@ func (cr *Core) GetExpiration(per string) (time.Duration, error) {
return 0, err
}
exp, err := cr.PeriodToMinutes(per)
length, _ := cr.Cfg.Config.Get("sortedSet").Get("length").String()
ln := ToInt64(length)
dur := time.Duration(exp*ln) * time.Minute
length, _ := cr.Cfg.Config.Get("sortedSet").Get("length").Int64()
logrus.Info("length of sortedSet: ", length)
dur := time.Duration(exp*length) * time.Minute
return dur, err
}