UNPKG

ram64

Version:

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

19 lines (18 loc) 430 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 = opts.args?.value + oldStr; (0, _set).fn({ ...opts, args: { value } }); return value; }; exports.fn = fn; //# sourceMappingURL=strPrepend.js.map