TemporaryStorage — cache streamed content
Allocates temporary buffers for caching streamed content during request processing. Initially uses memory; when the memory limit is exceeded, switches to a temporary file.
{
"name": string,
"type": "TemporaryStorage",
"config": {
"initialLength": number,
"memoryLimit": number,
"fileLimit": number,
"directory": string
}
}"initialLength": number,
optionalThe initial length of memory buffer byte array. Default: 8192 (8 KiB).
"memoryLimit": number,
optionalThe length limit of the memory buffer. Exceeding this limit results in promotion from memory to file. Default: 65536 (64 KiB).
"fileLimit": number, optionalThe length limit of the file buffer. Exceeding this limit results in a thrown exception. Default: 1048576 (1 MiB).
"directory": string, optionalThe directory where temporary files are created. If omitted, then
the system-dependent default temporary directory is used (typically
"/tmp" on Unix systems). Default: use system-dependent
default.