@ezs/booster

1.2.4 • 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 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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @ezs/booster

    Weekly Downloads

    3

    Version

    1.2.4

    License

    MIT

    Unpacked Size

    17.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • jj618
    • parmentf
    • touv