api/stream/manage: don't use clones in node cache

This commit is contained in:
wukko 2024-10-30 23:56:14 +06:00
parent 406ac7613c
commit 776c4f4dba
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -15,7 +15,8 @@ const freebind = env.freebindCIDR && await import('freebind').catch(() => {});
const streamCache = new NodeCache({ const streamCache = new NodeCache({
stdTTL: env.streamLifespan, stdTTL: env.streamLifespan,
checkperiod: 10, checkperiod: 10,
deleteOnExpire: true deleteOnExpire: true,
useClones: false,
}) })
streamCache.on("expired", (key) => { streamCache.on("expired", (key) => {