From 71c44e4d6d63a82920d658b02e3ba58372b55cdf Mon Sep 17 00:00:00 2001 From: Ranjan Raghavendra <60459840+ranjanraghavendra@users.noreply.github.com> Date: Sat, 3 Oct 2020 16:41:18 +0530 Subject: [PATCH] custom node red contextStorage with redis database --- contextStorage_with_redis.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 contextStorage_with_redis.txt diff --git a/contextStorage_with_redis.txt b/contextStorage_with_redis.txt new file mode 100644 index 0000000..3981f09 --- /dev/null +++ b/contextStorage_with_redis.txt @@ -0,0 +1,25 @@ + + // Context Storage + // The following property can be used to enable context storage. The configuration + // provided here will enable file-based context that flushes to disk every 30 seconds. + // Refer to the documentation for further options: https://nodered.org/docs/api/context/ + // + + contextStorage: { + + // default node red contextStorage + // default: { + // module:"localfilesystem" + // }, + + // custom node red contextStorage with redis database + redis:{ + module: require("node-red-context-redis"), + config:{ + host:// host, + port:6379, + db:0, + password: //password, + } + } + },