Skip to content

wingify/vwo-node-sdk-redis-helper

Repository files navigation

VWO Node SDK Redis Helper

npm version

License

This open source library allows you to use Redis as a UserStorage Service in VWO Node SDK

Requirements

  • Node 6.10.0 or later - for server-side
  • Redis 4.6 or later

Installation

# via npm
npm install vwo-node-sdk-redis-helper --save

# via yarn
yarn add vwo-node-sdk-redis-helper

How to use

  1. Require the helper

    const VWOUserStorageRedisHelper = require('vwo-node-sdk-redis-helper');
  2. Create the instance

    const VWORedisStorageInstance = new VWOUserStorageRedisHelper();
  3. Initialize the helper with the Redis configuration

    VWORedisStorageInstance.init({
      // URL to connect with Redis
      url: 'http://localhost',
      // password to connect to Redis, if any
      password: "test@123",
      // (Optional) port where redis is listening, by default 6379
      port: 1234
    });

Documentation

Refer Official VWO Documentation

Authors

Changelog

Refer CHANGELOG.md

Contributing

Please go through our contributing guidelines

Code of Conduct

Code of Conduct

License

Apache License, Version 2.0

Copyright 2024 Wingify Software Pvt. Ltd.

About

Redis helper to connect VWO Node SDK with running Redis instance to store and retrieve VWO campaigns data

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published