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

Add Azure storage option #120

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 <- 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.

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.

None yet

1 participant