MCPcopy Index your code
hub / github.com/chartdb/chartdb / setInCache

Function setInCache

src/lib/data/sql-export/export-sql-cache.ts:13–19  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

11};
12
13export const setInCache = (key: string, value: string): void => {
14 try {
15 localStorage.setItem(`sql-export-${key}`, value);
16 } catch (e) {
17 console.warn('Failed to write to localStorage:', e);
18 }
19};
20
21export const generateCacheKey = async (
22 databaseType: DatabaseType,

Callers 1

exportSQLFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected