(key: string, value: string)
| 11 | }; |
| 12 | |
| 13 | export 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 | |
| 21 | export const generateCacheKey = async ( |
| 22 | databaseType: DatabaseType, |