Skip to content

Document flushing of (SQLite) cache #11

@martinheidegger

Description

@martinheidegger

Currently the SQLite cache can be flushed only manually. This behavior (and the apis) needs to be documented!

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

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions