Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/SPlayer-Dev/SPlayer
/ getTotalSize
Method
getTotalSize
electron/main/database/CacheDB.ts:108–113 ·
view source on GitHub ↗
获取所有缓存总大小
()
Source
from the content-addressed store, hash-verified
106
107
/** 获取所有缓存总大小 */
108
getTotalSize(): number {
109
const
result = this.db.prepare(
"SELECT SUM(size) as total FROM kv_cache"
).get() as {
110
total: number;
111
};
112
return
result.total || 0;
113
}
114
}
Callers
nothing calls this directly
Calls
2
get
Method · 0.65
prepare
Method · 0.65
Tested by
no test coverage detected