Skip to content

Caching for "offline mode" #46

Answered by dimo414
huyz asked this question in Q&A
Discussion options

You must be logged in to vote

#24 sounds related, if you'd like to weigh in there. I am open to adding something like this, it's not quite what you're asking about but maybe you'd be able to use it.

I don't anticipate adding support to bkt to detect something like "is offline" since that's a fairly complex thing to detect in general (as simple as it seems when talking colloquially about it 🙂) and because I want bkt to remain agnostic to the commands it executes and caches. Similarly, I don't have plans to add behavior to bkt to output different content when a result is cached vs. fresh - it is intended to be transparent to callers. The command could obviously output when it ran (e.g. via date), but it wouldn't be able…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dimo414
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants