MCPcopy
hub / github.com/InkTimeRecord/TTime / oldCacheGetByObj

Function oldCacheGetByObj

src/renderer/src/utils/cacheUtil.ts:113–116  ·  view source on GitHub ↗
(key, isObj)

Source from the content-addressed store, hash-verified

111 * @param isObj 是否为对象
112 */
113export const oldCacheGetByObj = (key, isObj) => {
114 const res = localStorage[key]
115 return isNotNull(res) && isObj ? JSON.parse(res) : res
116}
117
118/**
119 * 设置

Callers 2

oldCacheGetFunction · 0.85
oldCacheGetStrFunction · 0.85

Calls 1

isNotNullFunction · 0.90

Tested by

no test coverage detected