mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-03 19:25:19 +02:00
switch to ioredis
This commit is contained in:
parent
44f8088d9b
commit
07b561f3c6
6 changed files with 95 additions and 16 deletions
|
|
@ -189,9 +189,7 @@ export async function getCopilotResponseStream(
|
|||
const streamId = crypto.randomUUID();
|
||||
|
||||
// store payload in redis
|
||||
await redisClient.set(`copilot-stream-${streamId}`, payload, {
|
||||
EX: 60 * 10, // expire in 10 minutes
|
||||
});
|
||||
await redisClient.set(`copilot-stream-${streamId}`, payload, 'EX', 60 * 10); // expire in 10 minutes
|
||||
|
||||
return {
|
||||
streamId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue