Node.js Client for Hazelcast, using Hazelcast Open Client Protocol 1.0 for Hazelcast 3.6 and higher
Hazelcast is a clustering and highly scalable data distribution platform.
With its various distributed data structures, distributed caching capabilities, elastic nature and more importantly with so many happy users, Hazelcast is feature-rich, enterprise-ready and developer-friendly in-memory data grid solution.
NOTE: This project is currently in active development.
npm install hazelcast-client --save
var HazelcastClient = require('hazelcast-client').Client;
var person = {
firstName: "Joe",
lastName: "Doe",
age: 42
};
var map;
HazelcastClient.newHazelcastClient().then(function (hazelcastClient) {
map = hazelcastClient.getMap("personMap");
map.put(1, person).then(function (val) {
// prints previous value for key `1`
console.log(val);
});
map.get(1).then(function (value) {
console.log(value);
})
});
Take a look at code samples for further information.
Or see API Docs
hazelcast-client
From Sourcesnpm install
npm run compile
npm link
cd
to project directorynpm link hazelcast-client
Maven
Maven automatically downloads hazelcast-remote-controller and hazelcast from maven repository.
npm test
Please join the mail group if you are interested in using or developing Hazelcast.
http://groups.google.com/group/hazelcast
Hazelcast is available under the Apache 2 License. Please see the Licensing appendix for more information.
Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved.
Visit www.hazelcast.com for more info.
Generated using TypeDoc