MCPcopy
hub / github.com/SPlayer-Dev/SPlayer / list

Method list

electron/main/database/CacheDB.ts:93–97  ·  view source on GitHub ↗

列出某类缓存

(type: string)

Source from the content-addressed store, hash-verified

91
92 /** 列出某类缓存 */
93 list(type: string): Omit<CacheEntry, "data">[] {
94 return this.db
95 .prepare("SELECT key, type, size, mtime, atime FROM kv_cache WHERE type = ?")
96 .all(type) as Omit<CacheEntry, "data">[];
97 }
98
99 /** 获取某类缓存总大小 */
100 getSize(type: string): number {

Callers 1

initCacheIpcFunction · 0.45

Calls 1

prepareMethod · 0.65

Tested by

no test coverage detected