This package cannot be used alone. EZS has to be installed.
#!/usr/bin/env ezs
[use]
plugin = booster
[booster]
file = ./script.ini
$ git clone https://github.com/touv/node-booster.git
$ cd node-booster
$ npm install -g ezs
$ npm install
$ npm link
$ npm run build
$ echo "booster do something !" | ./examples/booster.ezs
Takes an Object
delegate processing to an external pipeline and cache the result
data
feed
-
file
String? the external pipeline is descrbied in a file -
script
String? the external pipeline is descrbied in a sting of characters -
commands
String? the external pipeline is descrbied in object -
key
String? the cache key identifier form the stream, in not provided, the key is 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