UNPKG

ram64

Version:

Multi-threaded 64bit memory cache database inspired by redis-like features

19 lines (18 loc) 429 B
"use strict"; exports.fn = void 0; var _get = require("./get"); var _set = require("./set"); const fn = (opts)=>{ const oldValue = (0, _get).fn(opts); const oldStr = typeof oldValue === 'string' ? oldValue : ''; const value = oldStr + opts.args?.value; (0, _set).fn({ ...opts, args: { value } }); return value; }; exports.fn = fn; //# sourceMappingURL=strAppend.js.map