register_service: Register an Object Store Service

Description Usage Arguments Value See Also Examples

Description

Register an object store service backend, including backend-specific options like authentication, encryption, and compression.

Usage

1
register_service(url = "http://localhost:8000", backend = mongoose, ...)

Arguments

url

The service root url including protocol, address and port number. For example http://localhost:8000.

backend

A service backend provider. The default is mongoose, but you may choose from other available backends like minio and s3.

...

Backend-specific arguments, see backend documentation for details.

Value

A function used by cache, uncache and delete to access the service.

See Also

mongoose link{cache} uncache delete

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Start an example local mongoose backend server
mongoose_start()
con <- register_service()
# Cache the 'iris' dataset in a directory named 'mydata':
cache(con, iris, "mydata/iris")
# Retrieve it from the cache into a new variable called 'x'
x <- uncache(con, "mydata/iris")
# Delete the entire 'mydata' directory
delete(con, "mydata")
mongoose_stop()

bwlewis/feathercache documentation built on May 13, 2019, 9:06 a.m.