forked from MapComplete/MapComplete
Refactoring: improve caching
This commit is contained in:
parent
f203a1158d
commit
e36e9123f3
5 changed files with 91 additions and 20 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue