MCPcopy
hub / github.com/mailvelope/mailvelope / get

Method get

src/modules/autocryptWrapper.js:140–148  ·  view source on GitHub ↗
(key, cb)

Source from the content-addressed store, hash-verified

138 }
139
140 get(key, cb) {
141 let value;
142 try {
143 value = this.map.get(key);
144 } catch (err) {
145 cb(new MvError(err.message, 'STORAGE_ERROR'));
146 }
147 cb(undefined, value);
148 }
149
150 put(key, val, cb) {
151 this.map.set(key, val);

Callers 3

autocryptFunction · 0.45
lookupFunction · 0.45
initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected