|
|
@ -259,6 +259,7 @@ export default class RedisMockCacheMgr extends CacheMgr { |
|
|
|
log(`RedisMockCacheMgr::deepDel: remove key ${key}`); |
|
|
|
log(`RedisMockCacheMgr::deepDel: remove key ${key}`); |
|
|
|
return await this.del(key); |
|
|
|
return await this.del(key); |
|
|
|
} else if (direction === CacheDelDirection.PARENT_TO_CHILD) { |
|
|
|
} else if (direction === CacheDelDirection.PARENT_TO_CHILD) { |
|
|
|
|
|
|
|
key = /:list$/.test(key) ? key : `${key}:list`; |
|
|
|
// given a list key, delete all the children
|
|
|
|
// given a list key, delete all the children
|
|
|
|
const listOfChildren = await this.get(key, CacheGetType.TYPE_ARRAY); |
|
|
|
const listOfChildren = await this.get(key, CacheGetType.TYPE_ARRAY); |
|
|
|
// delete each child key
|
|
|
|
// delete each child key
|
|
|
|