|
@ -33,8 +33,8 @@ export class RedisCacheService { |
|
|
return JSON.parse(value); |
|
|
return JSON.parse(value); |
|
|
} catch (error: any) { |
|
|
} catch (error: any) { |
|
|
if (error instanceof SyntaxError) { |
|
|
if (error instanceof SyntaxError) { |
|
|
Logger.warn( |
|
|
Logger.debug( |
|
|
`Failed to parse json, so returning the value as String :${value}`, |
|
|
`Failed to parse json, returning the value as String: ${value}`, |
|
|
'RedisCacheService' |
|
|
'RedisCacheService' |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
@ -108,6 +108,7 @@ export class RedisCacheService { |
|
|
const keys = await this.getKeys( |
|
|
const keys = await this.getKeys( |
|
|
`${this.getPortfolioSnapshotKey({ userId })}` |
|
|
`${this.getPortfolioSnapshotKey({ userId })}` |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
return this.cache.mdel(keys); |
|
|
return this.cache.mdel(keys); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|