ioredis-parse-cache-adapter

1.1.13 • Public • Published

ioredis-parse-cache-adapter

parse-server cache-adapter for ioredis

Base on this file: RedisCacheAdapter.js

Installation

npm install --save ioredis-parse-cache-adapter

Usage

Redis single node or Redis sentinel configuration:

const parseServer = new ParseServer({

    /// Other options

    cacheAdapter: new RedisCacheAdapter({ url: process.env.REDIS_URL });
});

Redis Cluster configuration:

const parseServer = new ParseServer({

    /// Other options

    cacheAdapter: new RedisCacheAdapter({
      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-cache-adapter

Weekly Downloads

119

Version

1.1.13

License

GPLV3

Unpacked Size

66.5 kB

Total Files

23

Last publish

Collaborators

  • mammut-felix