9 lines · 248 B · TypeScript
RawDownload
const cache = new Map<string, unknown>(); export function readPageCache<T>(key: string): T | null {  return (cache.get(key) as T | undefined) ?? null;} export function writePageCache<T>(key: string, value: T): void {  cache.set(key, value);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t