ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivasilin...@apache.org
Subject [1/2] incubator-ignite git commit: #ignite-964: add cache-put-get-example.
Date Mon, 06 Jul 2015 15:31:10 GMT
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 <ivasilinets@gridgain.com>
Authored: Mon Jul 6 13:29:53 2015 +0300
Committer: ivasilinets <ivasilinets@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


Mime
View raw message