Refactoring: improve caching

This commit is contained in:
Pieter Vander Vennet 2023-04-18 23:44:49 +02:00
parent f203a1158d
commit e36e9123f3
5 changed files with 91 additions and 20 deletions

View file

@ -38,11 +38,11 @@ export class IdbLocalStorage {
return src
}
public static SetDirectly(key: string, value) {
idb.set(key, value)
public static SetDirectly(key: string, value): Promise<void> {
return idb.set(key, value)
}
static GetDirectly(key: string) {
static GetDirectly(key: string): Promise<void> {
return idb.get(key)
}
}