MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / chatCacheDelete

Function chatCacheDelete

app/src/modules/chat-cache.js:56–64  ·  view source on GitHub ↗
(cacheKey)

Source from the content-addressed store, hash-verified

54}
55
56export async function chatCacheDelete(cacheKey) {
57 const db = await openChatCacheDb();
58 return new Promise((resolve, reject) => {
59 const tx = db.transaction(CHAT_CACHE_STORE, 'readwrite');
60 tx.oncomplete = () => resolve();
61 tx.onerror = () => reject(tx.error || new Error('Failed to delete chat cache'));
62 tx.objectStore(CHAT_CACHE_STORE).delete(cacheKey);
63 });
64}
65
66export async function chatCacheReadAll() {
67 const db = await openChatCacheDb();

Callers 2

persistSessionCacheFunction · 0.90
pruneChatCacheFunction · 0.70

Calls 1

openChatCacheDbFunction · 0.70

Tested by

no test coverage detected