(profile: IClickhouseProfile)
| 95 | } |
| 96 | |
| 97 | public async setCache(profile: IClickhouseProfile): Promise<void> { |
| 98 | const cacheKey = this.getProfileCacheKey({ |
| 99 | profileId: profile.id, |
| 100 | projectId: profile.project_id, |
| 101 | }); |
| 102 | await this.redis.set( |
| 103 | cacheKey, |
| 104 | JSON.stringify(profile), |
| 105 | 'EX', |
| 106 | this.ttlInSeconds |
| 107 | ); |
| 108 | } |
| 109 | |
| 110 | async add(profile: IClickhouseProfile, isFromEvent = false) { |
| 111 | return this.timeAdd(async () => { |
nothing calls this directly
no test coverage detected