Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/SPlayer-Dev/SPlayer
/ remove
Method
remove
electron/main/database/CacheDB.ts:77–79 ·
view source on GitHub ↗
删除缓存
(key: string)
Source
from the content-addressed store, hash-verified
75
76
/** 删除缓存 */
77
remove(key: string) {
78
this.db.prepare(
"DELETE FROM kv_cache WHERE key = ?"
).run(key);
79
}
80
81
/** 清空某类缓存 */
82
clear(
type
: string) {
Callers
1
initCacheIpc
Function · 0.45
Calls
1
prepare
Method · 0.65
Tested by
no test coverage detected