-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Allow local caching of API calls #69
Comments
Working on |
Need to have easy way to turn off cache for API calls that can''t be e.g. task queue checks, something like |
Hmm but task queues do need to be cached when READY. Its going to need an argument and changes to the API function code, perhaps a new flag for Pass a function to check? If Usually the function is something like cache_condition <- function(req){
if(req$status == 200){
TRUE
} else {
FALSE
}
} but you should have option to pass custom such as: cache_condition <- function(req){
if(req$content$task$status == "DONE"){
TRUE
} else {
FALSE
}
} |
Obviously there is already an R package made by hadley for this https://github.com/r-lib/memoise |
I think this works r-lib/memoise#46 |
In now for mock tests, why not be available for all API requests? cache long running API fetches that can restart where a 500 error crops up
The text was updated successfully, but these errors were encountered: