1.1.5 • Published 1 year ago

ioredis-parse-adapter v1.1.5

Weekly downloads
-
License
GPLV3
Repository
github
Last release
1 year ago

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.

1.1.5

1 year ago

1.1.4

1 year ago

1.1.1

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago