fix(medusa): Remove redundant redis delete call when invalidating cache entryies (#2943)
This commit is contained in:
1 parent
3d200c41f9
commit
0b14814d5a
1 file changed
-1
@@ -54,7 +54,6 @@ export default class CacheService implements ICacheService {
|
|||||||
* @param key
|
* @param key
|
||||||
*/
|
*/
|
||||||
async invalidate(key: string): Promise<void> {
|
async invalidate(key: string): Promise<void> {
|
||||||
await this.redis_.del()
|
|
||||||
const keys = await this.redis_.keys(key)
|
const keys = await this.redis_.keys(key)
|
||||||
const pipeline = this.redis_.pipeline()
|
const pipeline = this.redis_.pipeline()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user