Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/SPlayer-Dev/SPlayer
/ clear
Method
clear
electron/main/database/CacheDB.ts:82–84 ·
view source on GitHub ↗
清空某类缓存
(type: string)
Source
from the content-addressed store, hash-verified
80
81
/** 清空某类缓存 */
82
clear(
type
: string) {
83
this.db.prepare(
"DELETE FROM kv_cache WHERE type = ?"
).run(
type
);
84
}
85
86
/** 清空所有缓存并回收空间 */
87
clearAll() {
Callers
1
initCacheIpc
Function · 0.45
Calls
1
prepare
Method · 0.65
Tested by
no test coverage detected