deepstreamIO / deepstream.io-cache-hazelcast

Hazelcast Cache Connector
Other
1 stars 2 forks source link

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();