-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Currently the SQLite cache can be flushed only manually. This behavior (and the apis) needs to be documented!
Lines 24 to 42 in 2ab60f4
| async clear () { | |
| await lru.clear() | |
| run(Q_CLEAR, {}) | |
| }, | |
| async clearName (name) { | |
| await lru.clearName(name) | |
| run(Q_CLEAR_NAME, { name }) | |
| }, | |
| async close () { | |
| if (db !== null && db.open) { | |
| db.close() | |
| db = null | |
| } | |
| }, | |
| async flush (timestamp) { | |
| timestamp = typeof timestamp === 'number' ? timestamp : Date.now() | |
| await lru.flush(timestamp) | |
| run(Q_FLUSH, { now: timestamp }) | |
| }, |
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation