Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
113
export
const
oldCacheGetByObj = (key, isObj) => {
114
const
res = localStorage[key]
115
return
isNotNull(res) && isObj ? JSON.parse(res) : res
116
}
117
118
/**
119
* 设置
Callers
2
oldCacheGet
Function · 0.85
oldCacheGetStr
Function · 0.85
Calls
1
isNotNull
Function · 0.90
Tested by
no test coverage detected