ioredis-parse-adapter

1.1.5 • Public • Published

ioredis-parse-adapter

parse-server adapter for ioredis

Installation

npm install --save ioredis-parse-adapter

Usage

Redis single node or Redis sentinel configuration:

const parseServer = new ParseServer({

    /// Other options

    liveQuery: {
        pubSubAdapter: new IORedisAdapter(process.env.REDIS_URL)
    };
});

Redis Cluster configuration:

const parseServer = new ParseServer({

    /// Other options

    liveQuery: {
        pubSubAdapter: new IORedisAdapter({
          cluster: {
            nodes: process.env.REDIS_CLUSTER_NODES.split(','),
            options: {
              redisOptions: {
                password: process.env.REDIS_PASSWORD,
              },
            }
          }
        })
    };
});

You can pass any option that ioredis supports. You may have a look at their documentation.

Package Sidebar

Install

npm i ioredis-parse-adapter

Weekly Downloads

189

Version

1.1.5

License

GPLV3

Unpacked Size

57.3 kB

Total Files

23

Last publish

Collaborators

  • mammut-felix