From 53ca70ed1e09e2b818d80c17f384a88fa0f1e017 Mon Sep 17 00:00:00 2001 From: danielailie Date: Thu, 12 Oct 2023 15:16:01 +0300 Subject: [PATCH] Update cache service --- src/modules/marketplaces/marketplaces-caching.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/marketplaces/marketplaces-caching.service.ts b/src/modules/marketplaces/marketplaces-caching.service.ts index e688704b1..92cff7828 100644 --- a/src/modules/marketplaces/marketplaces-caching.service.ts +++ b/src/modules/marketplaces/marketplaces-caching.service.ts @@ -48,19 +48,19 @@ export class MarketplacesCachingService { } private async invalidateMarketplacesCache() { - await this.cacheService.deleteInCache(CacheInfo.AllMarketplaces.key); + await this.cacheService.delete(CacheInfo.AllMarketplaces.key); } private async invalidateCollectionsByMarketplace(key: string) { console.log({ key: `${CacheInfo.CollectionsByMarketplace.key}_${key}` }); - await this.cacheService.deleteInCache(`${CacheInfo.CollectionsByMarketplace.key}_${key}`); + await this.cacheService.delete(`${CacheInfo.CollectionsByMarketplace.key}_${key}`); } private async invalidateMarketplaceByCollection(key: string) { - await this.cacheService.deleteInCache(`${CacheInfo.MarketplaceCollection.key}_${key}`); + await this.cacheService.delete(`${CacheInfo.MarketplaceCollection.key}_${key}`); } private async invalidateMarketplaceByAddressAndCollection(key: string) { - await this.cacheService.deleteInCache(`${CacheInfo.MarketplaceAddressCollection.key}_${key}`); + await this.cacheService.delete(`${CacheInfo.MarketplaceAddressCollection.key}_${key}`); } }