Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
125
export
const
oldCacheSetByObj = (key, val, isObj) => {
126
return
(localStorage[key] = isNotNull(val) && isObj ? JSON.stringify(val) : val)
127
}
Callers
2
oldCacheSet
Function · 0.85
oldCacheSetStr
Function · 0.85
Calls
1
isNotNull
Function · 0.90
Tested by
no test coverage detected