(key: string)
| 2 | import { sha256 } from '@/lib/utils'; |
| 3 | |
| 4 | export const getFromCache = (key: string): string | null => { |
| 5 | try { |
| 6 | return localStorage.getItem(`sql-export-${key}`); |
| 7 | } catch (e) { |
| 8 | console.warn('Failed to read from localStorage:', e); |
| 9 | return null; |
| 10 | } |
| 11 | }; |
| 12 | |
| 13 | export const setInCache = (key: string, value: string): void => { |
| 14 | try { |