Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

deepstreamIO/deepstream.io-cache-hazelcast

Repository files navigation

deepstream.io-cache-hazelcast npm version Build Status

deepstream cache connector for hazelcast

This connector uses the npm hazelcast-client package. Please have a look there for detailed options.

##Basic Setup

plugins:
  cache:
    name: hazelcast
    options:
      networkConfig:
        addresses:
          - host: $HAZELCAST_HOST
            port: $HAZELCAST_PORT
const Deepstream = require('deepstream.io');
const HazelcastCacheConnector = require('deepstream.io-cache-hazelcast');
const server = new Deepstream();

server.set('cache', new HazelcastCacheConnector({
  networkConfig: {
    addresses: [{
      host: 'localhost',
      port: 5701
    }]
  },
  mapName: 'deepstreamCache'
}));

server.start();