This package has been deprecated

Author message:

This plugin has been merged into https://www.npmjs.com/package/@flowforge/nr-launcher

@flowforge/nr-persistent-context

0.0.5 • Public • Published

@flowforge/nr-persistent-context

A Node-RED Context Plugin for the FlowForge platform.

This plugin provides persistent context for a Node-RED instance on the FlowForge platform.

Configuration

contextStorage: {
    file: {
        module: require("@flowforge/nr-persistent-context"),
        config: {
            projectID: process.env['FORGE_PROJECT_ID'],
            baseURL: process.env['FORGE_STORAGE_URL'],
            token: process.env['FORGE_STORAGE_TOKEN'],
            requestTimeout: 3000,
            pageSize: 20,
            flushInterval: 30,
            cache: true
        }
    }
}
  • projectID - is the UUID of the project (provided by FlowForge)
  • baseURL - the root URL for the FlowForge Storage API (provided by FlowForge)
  • token - authentication token (provided by FlowForge)
  • requestTimeout - (optional) The number of milliseconds to wait before timing out a request (Type:number, Default:3000)
  • pageSize - (optional) The number of context items/rows to fetch per page (Type:number, Default:20)
  • flushInterval - (optional) The number of seconds to wait before flushing pending writes (Type:number, Default:30)
  • cache - (optional) Whether to cache context items in memory (required for synchronous get/set) (Type:boolean, Default:true)

Readme

Keywords

none

Package Sidebar

Install

npm i @flowforge/nr-persistent-context

Weekly Downloads

0

Version

0.0.5

License

SEE LICENSE in LICENSE

Unpacked Size

74.3 kB

Total Files

14

Last publish

Collaborators

  • flowforge