Novice, Practiced, Mastered
Miss any of our Open RFC calls?Watch the recordings here! »

@ezs/booster

1.1.5 • Public • Published

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 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 form the stream, in not provided, it's computed with the first chunk
  • hitsByCheck Number Number of hits to verify the cache (optional, default 1000)
  • maxFiles Number Number of hits to verify the cache (optional, default 100)
  • maxTotalSize Number Size (bytes) maximun of the cash (1 G) (optional, default 1000000000)
  • cleanupDelay Number Frequency (milliseconds) to cleanup the cahe (10 min) (optional, default 600000)

Returns Object

Keywords

Install

npm i @ezs/[email protected]

Version

1.1.5

License

MIT

Unpacked Size

24.8 kB

Total Files

10

Last publish

Collaborators

  • avatar
  • avatar