8000 Add Azure storage option by hongooi73 · Pull Request #120 · r-lib/memoise · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Azure storage option #120

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

8000
Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Add Azure storage option #120

wants to merge 7 commits into from

Conversation

hongooi73
Copy link
@hongooi73 hongooi73 commented Jan 19, 2021

Adds a cache_azure function, to put the cache in an Azure storage account (#93). Also includes tests, in testthat/test-azure.R.

Interface is simply

endpoint_object <- AzureStor::storage_endpoint("https://{acctname}.{storagetype}.core.windows.net", {auth_args})
azcache <- cache_azure("containername", endpoint_object)

Or alternatively,

azcache 
8000
<- cache_azure("containername",
    "https://{acctname}.{storagetype}.core.windows.net", {auth_args})

where the endpoint object is created within the cache_azure call.

@hongooi73
Copy link
Author
hongooi73 commented Jan 19, 2021

Also, the README says that the API should implement methods called exists and remove, but the actual methods are called has_key and drop_key (eg in cache_filesystem.R). I assume the README is outdated?

Nevermind, I see what's going on. Updated cache_azure to use the new-style caching mechanism.

hongooi73 and others added 6 commits January 20, 2021 07:52
< 8B57 input type="hidden" name="disable_live_updates" value="false" autocomplete="off" data-targets="batch-deferred-content.inputs" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0