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

Function localSet

entrypoints/utils/cache.ts:27–32  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

25
26 // local 系列为特化的缓存方法,用于操作翻译缓存
27 localSet(key: string, value: string) {
28 // 如果禁用缓存,则不执行任何操作
29 if (!config.useCache) return;
30
31 localStorage.setItem(buildKey(key), value);
32 },
33
34 localSetDual(key: string, value: string) {
35 // 如果禁用缓存,则不执行任何操作

Callers

nothing calls this directly

Calls 1

buildKeyFunction · 0.85

Tested by

no test coverage detected