MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / push

Method push

webiojs/src/utils.ts:11–16  ·  view source on GitHub ↗
(key: string, value: any)

Source from the content-addressed store, hash-verified

9 map: Dict = {};
10
11 push(key: string, value: any) {
12 if (key in this.map)
13 return console.error("LRUMap: key:%s already in map", key);
14 this.keys.push(key);
15 this.map[key] = value;
16 };
17
18 get_value(key: string) {
19 return this.map[key];

Callers 15

move_to_topMethod · 0.80
b64toBlobFunction · 0.80
add_send_taskMethod · 0.80
get_tasksMethod · 0.80
on_session_createMethod · 0.80
on_session_closeMethod · 0.80
on_session_createMethod · 0.80
on_session_closeMethod · 0.80
handle_messageMethod · 0.80
create_elementMethod · 0.80
handle_output_ctlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected