Repository: incubator-ignite Updated Branches: refs/heads/ignite-964-1 fd4cb53eb -> c8af45dc9
#ignite-964: add cache-put-get-example. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/ca754288 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/ca754288 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/ca754288 Branch: refs/heads/ignite-964-1 Commit: ca754288cbc97d7c193a3de7f1f47fabfc2c3ed8 Parents: fd4cb53 Author: ivasilinets <ivasilin...@gridgain.com> Authored: Mon Jul 6 13:29:53 2015 +0300 Committer: ivasilinets <ivasilin...@gridgain.com> Committed: Mon Jul 6 13:29:53 2015 +0300 ---------------------------------------------------------------------- .../nodejs/src/main/js/examples/src/cache-put-get-example.js | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ca754288/modules/nodejs/src/main/js/examples/src/cache-put-get-example.js ---------------------------------------------------------------------- diff --git a/modules/nodejs/src/main/js/examples/src/cache-put-get-example.js b/modules/nodejs/src/main/js/examples/src/cache-put-get-example.js index e89570a..099721f 100644 --- a/modules/nodejs/src/main/js/examples/src/cache-put-get-example.js +++ b/modules/nodejs/src/main/js/examples/src/cache-put-get-example.js @@ -30,6 +30,11 @@ function onConnect(error, ignite) { var cache = ignite.getOrCreateCache("mycache"); + putGet(cache); + +} + +putGet = function(cache) { console.log(">>> Cache put-get example started."); var keyCnt = 20; @@ -68,5 +73,8 @@ function onConnect(error, ignite) { for (var i = 0; i < keyCnt; i++) { cache.put(i, i.toString(), onPut); } +} + +putAllGetAll = function(cache) { } \ No newline at end of file