mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Set TTL to 24 hours
This commit is contained in:
parent
b9e2fc465c
commit
2150ce2ce8
1 changed files with 2 additions and 2 deletions
|
|
@ -210,12 +210,12 @@ export const textToSpeechStreamingHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
return res.status(500).send({ errorCode: 'SYNTHESIZER_ERROR' })
|
||||
}
|
||||
const audioDataString = audioData.toString('hex')
|
||||
// save audio data to cache for 12 hours
|
||||
// save audio data to cache for 24 hours for mainly the newsletters
|
||||
await redisClient.set(
|
||||
cacheKey,
|
||||
JSON.stringify({ audioDataString, speechMarks }),
|
||||
{
|
||||
EX: 3600 * 12, // in seconds
|
||||
EX: 3600 * 24, // in seconds
|
||||
NX: true,
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue