ram64
Version:
Multi-threaded 64bit memory cache database inspired by redis-like features
16 lines (15 loc) • 360 B
JavaScript
;
exports.get = get;
exports.set = set;
var _ramFunction = require("../ram-function");
// Do NOT export
const functions = new Map();
function get(id) {
return functions.get(id);
}
function set(code) {
const fn = _ramFunction.RAMFunction.fromString(code);
functions.set(fn.id, fn);
return fn;
}
//# sourceMappingURL=functions.js.map