#92 - Simpler cache implementation
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user