fix(medusa): Remove redundant redis delete call when invalidating cache entryies (#2943)

This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2023-01-05 19:08:14 +01:00
1 parent 3d200c41f9
commit 0b14814d5a
1 file changed
-1
-1
View File
@@ -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()