starting checkcache class to wrap the checkcache object store
This commit is contained in:
@@ -50,4 +50,17 @@ class SlopDB {
|
|||||||
|
|
||||||
return db_promise
|
return db_promise
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class CheckCache {
|
||||||
|
slopdb: SlopDB
|
||||||
|
|
||||||
|
constructor(slopdb: SlopDB) {
|
||||||
|
this.slopdb = slopdb
|
||||||
|
}
|
||||||
|
|
||||||
|
start_transaction(mode: IDBTransactionMode): IDBTransaction {
|
||||||
|
const transaction = this.slopdb.db.transaction("checkcache", mode)
|
||||||
|
return transaction
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user