Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document flushing of (SQLite) cache #11

Open
martinheidegger opened this issue Apr 19, 2021 · 0 comments
Open

Document flushing of (SQLite) cache #11

martinheidegger opened this issue Apr 19, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@martinheidegger
Copy link
Owner

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 })
},

@martinheidegger martinheidegger added the documentation Improvements or additions to documentation label Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant