booster
Ce plugin propose une instruction qui permet de mettre en cache le résultat de l’exécution d’un flux de traitement.
installation
npm install @ezs/booster
usage
Table of Contents
booster
Takes an Object
delegate processing to an external pipeline and cache the result
Parameters
data
feed
-
file
String? the external pipeline is described in a file -
script
String? the external pipeline is described in a string of characters -
commands
String? the external pipeline is described in a object -
command
String? the external pipeline is described in a URL-like command -
key
String? the cache key form the stream, in not provided, it's computed with the first chunk -
hitsByCheck
Number Number of hits to verify the cache (optional, default1000
) -
maxFiles
Number Number of hits to verify the cache (optional, default100
) -
maxTotalSize
Number Size (bytes) maximun of the cash (1 G) (optional, default1000000000
) -
cleanupDelay
Number Frequency (milliseconds) to cleanup the cahe (10 min) (optional, default600000
)
Returns Object