( projectId: string, deviceId: string )
| 212 | } |
| 213 | |
| 214 | async function sampleOldestSession( |
| 215 | projectId: string, |
| 216 | deviceId: string |
| 217 | ): Promise<IClickhouseSession | null> { |
| 218 | const blob = await getRedisCache().get(`session:${projectId}:${deviceId}`); |
| 219 | return blob ? getSafeJson<IClickhouseSession>(blob) : null; |
| 220 | } |
| 221 | |
| 222 | async function main() { |
| 223 | const args = process.argv.slice(2); |
no test coverage detected