Browse Source

Refactoring

pull/4270/merge^2
Thomas Kaul 3 weeks ago
parent
commit
82564a1448
  1. 6
      apps/api/src/app/redis-cache/redis-cache.service.ts

6
apps/api/src/app/redis-cache/redis-cache.service.ts

@ -19,16 +19,16 @@ export class RedisCacheService {
}
public async getKeys(aPrefix?: string): Promise<string[]> {
const keys = [];
const prefix = aPrefix;
const keyList = [];
this.cache.stores[0].iterator((key) => {
if ((prefix && key.startsWith(prefix)) || !prefix) {
keyList.push(key);
keys.push(key);
}
});
return keyList;
return keys;
}
public getPortfolioSnapshotKey({

Loading…
Cancel
Save