MCPcopy Index your code
hub / github.com/InkTimeRecord/TTime / oldCacheSetByObj

Function oldCacheSetByObj

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

Source from the content-addressed store, hash-verified

123 * @param isObj 是否为对象
124 */
125export const oldCacheSetByObj = (key, val, isObj) => {
126 return (localStorage[key] = isNotNull(val) && isObj ? JSON.stringify(val) : val)
127}

Callers 2

oldCacheSetFunction · 0.85
oldCacheSetStrFunction · 0.85

Calls 1

isNotNullFunction · 0.90

Tested by

no test coverage detected