Skip to content

Commit

Permalink
Update cache service
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Oct 12, 2023
1 parent d664164 commit 53ca70e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/marketplaces/marketplaces-caching.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ export class MarketplacesCachingService {
}

private async invalidateMarketplacesCache() {
await this.cacheService.deleteInCache(CacheInfo.AllMarketplaces.key);
await this.cacheService.delete(CacheInfo.AllMarketplaces.key);

Check warning on line 51 in src/modules/marketplaces/marketplaces-caching.service.ts

View check run for this annotation

Codecov / codecov/patch

src/modules/marketplaces/marketplaces-caching.service.ts#L51

Added line #L51 was not covered by tests
}

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}`);

Check warning on line 56 in src/modules/marketplaces/marketplaces-caching.service.ts

View check run for this annotation

Codecov / codecov/patch

src/modules/marketplaces/marketplaces-caching.service.ts#L55-L56

Added lines #L55 - L56 were not covered by tests
}

private async invalidateMarketplaceByCollection(key: string) {
await this.cacheService.deleteInCache(`${CacheInfo.MarketplaceCollection.key}_${key}`);
await this.cacheService.delete(`${CacheInfo.MarketplaceCollection.key}_${key}`);

Check warning on line 60 in src/modules/marketplaces/marketplaces-caching.service.ts

View check run for this annotation

Codecov / codecov/patch

src/modules/marketplaces/marketplaces-caching.service.ts#L60

Added line #L60 was not covered by tests
}

private async invalidateMarketplaceByAddressAndCollection(key: string) {
await this.cacheService.deleteInCache(`${CacheInfo.MarketplaceAddressCollection.key}_${key}`);
await this.cacheService.delete(`${CacheInfo.MarketplaceAddressCollection.key}_${key}`);

Check warning on line 64 in src/modules/marketplaces/marketplaces-caching.service.ts

View check run for this annotation

Codecov / codecov/patch

src/modules/marketplaces/marketplaces-caching.service.ts#L64

Added line #L64 was not covered by tests
}
}

0 comments on commit 53ca70e

Please sign in to comment.