#92 - Simpler cache implementation

This commit is contained in:
Simon Cambier
2022-10-26 22:21:11 +02:00
parent 33e7f8fe25
commit cb8de1ad8d
9 changed files with 379 additions and 289 deletions

View File

@@ -6,12 +6,14 @@ class OmnisearchCache extends Dexie {
string
>
searchHistory!: Dexie.Table<{ id?: number; query: string }, number>
minisearch!: Dexie.Table<{date: string; data: string}, string>
constructor() {
super(app.appId + '_omnisearch')
this.version(3).stores({
this.version(4).stores({
pdf: 'path, hash, size, text',
searchHistory: '++id, query',
minisearch: 'date, data'
})
}
}