You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, if you wanted to cache a binary object that would be as a buffer, and enabled via supportBuffer: true. I'm not really sure what it means to cache a stream to disk, can you share more?
for streaming, i think what they're after is something like:
constreadStream=createReadStream(...);cache.set('foo',readStream).then(function(){// readStream was read and closed, and stream written to foo});// or possibly/alsoreadStream.pipe(cache.setStream('foo'))
and that way the contents of foo is never buffered in memory. consider the scenario where you're caching 100mb files on a server with 1g of memory. that should be possible but won't be without stream support.
you'd also need the read stream counterpart for it to be useful, e.g.: cache.getStream('foo')
Can't find any info... Any help would be appreciated.
The text was updated successfully, but these errors were encountered: