캐시 삭제 구현

This commit is contained in:
static
2025-01-14 03:26:32 +09:00
parent f37df53991
commit 27d2b83464
7 changed files with 55 additions and 19 deletions

View File

@@ -22,3 +22,7 @@ export const getFileCacheIndex = async () => {
export const storeFileCacheIndex = async (fileCacheIndex: FileCacheIndex) => {
await cacheIndex.fileCache.put(fileCacheIndex);
};
export const deleteFileCacheIndex = async (fileId: number) => {
await cacheIndex.fileCache.delete(fileId);
};