@ezs/booster

booster statements for EZS

Usage no npm install needed!

<script type="module">
  import ezsBooster from 'https://cdn.skypack.dev/@ezs/booster';
</script>

README

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, 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