#ignite-964: add getAndPutIfAbsent to node js cache.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/be7cda25 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/be7cda25 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/be7cda25 Branch: refs/heads/ignite-964-1 Commit: be7cda2528c20b6825d66a7bd412299345ae9584 Parents: bd4cb3e Author: ivasilinets <ivasilin...@gridgain.com> Authored: Sun Jul 5 23:31:35 2015 +0300 Committer: ivasilinets <ivasilin...@gridgain.com> Committed: Sun Jul 5 23:31:35 2015 +0300 ---------------------------------------------------------------------- .../internal/processors/rest/handlers/scripting/NodeJsCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/be7cda25/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/scripting/NodeJsCache.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/scripting/NodeJsCache.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/scripting/NodeJsCache.java index 641d107..95f575c 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/scripting/NodeJsCache.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/scripting/NodeJsCache.java @@ -106,7 +106,7 @@ public class NodeJsCache { for (Object e : cacheKeys) { JSONCacheObject e0 = (JSONCacheObject)e; - cacheEntries.put(e0.getField("_key"), e0.getField("_val")); + cacheEntries.put(e0.getField("key"), e0.getField("value")); } cache.putAll(cacheEntries);