MCPcopy Index your code
hub / github.com/MALSync/MALSync / getKey

Function getKey

src/background/database.ts:67–75  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

65}
66
67export async function getKey(key: string): Promise<string | number | undefined> {
68 return db
69 .table('storage')
70 .get(key)
71 .then(res => {
72 if (typeof res === 'undefined') return res;
73 return res.value;
74 });
75}
76
77export async function setKey(key: string, value: string | number) {
78 return db.table('storage').put({

Callers 1

indexUpdateFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected