MCPcopy Create free account
hub / github.com/apache/thrift / store

Function store

lib/nodejs/examples/server_http.js:27–31  ·  view source on GitHub ↗
(user, result)

Source from the content-addressed store, hash-verified

25var users = {};
26
27var store = function (user, result) {
28 console.log("stored:", user.uid);
29 users[user.uid] = user;
30 result(null);
31};
32var retrieve = function (uid, result) {
33 console.log("retrieved:", uid);
34 result(null, users[uid]);

Callers 2

mainFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 2

mainFunction · 0.40
mainFunction · 0.40