修正一处DailyCache相关的问题
This commit is contained in:
parent
0b83e8d96b
commit
76c63405bb
|
@ -311,6 +311,7 @@ export default class DailyCache extends BaseModel {
|
||||||
*/
|
*/
|
||||||
async zDel (table, key, delCount = false) {
|
async zDel (table, key, delCount = false) {
|
||||||
// 删除key对应list所有记录
|
// 删除key对应list所有记录
|
||||||
|
key = key + ''
|
||||||
let check = redis.zScore(this.getTableKey(table, 'count'), key)
|
let check = redis.zScore(this.getTableKey(table, 'count'), key)
|
||||||
await redis.zRemRangeByScore(this.getTableKey(table), key, key)
|
await redis.zRemRangeByScore(this.getTableKey(table), key, key)
|
||||||
await this.zDisableKey(table, key, delCount)
|
await this.zDisableKey(table, key, delCount)
|
||||||
|
|
Loading…
Reference in New Issue