MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / deleteHandle

Function deleteHandle

src/pkg/utils/filehandle-db.ts:36–38  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

34
35// Delete a file handle by key
36export async function deleteHandle(key: string): Promise<void> {
37 await db.handles.delete(key);
38}
39
40// 清除超过 15 分钟未使用的FileHandle
41export async function cleanupOldHandles(maxAgeMs = 15 * 60 * 1000): Promise<void> {

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected