MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / localRemove

Function localRemove

entrypoints/utils/cache.ts:49–56  ·  view source on GitHub ↗
(origin: string)

Source from the content-addressed store, hash-verified

47 },
48
49 localRemove(origin: string) {
50 const key = buildKey(origin);
51 const result = localStorage.getItem(key);
52 localStorage.removeItem(key);
53 if (result) {
54 localStorage.removeItem(buildKey(result));
55 }
56 },
57
58 // 24h 清理一次缓存(每次页面打开即 main.js 时都应该调用)
59 cleaner() {

Callers

nothing calls this directly

Calls 1

buildKeyFunction · 0.85

Tested by

no test coverage detected