init_cache: Init Cache

View source: R/caching.R

init_cacheR Documentation

Init Cache

Description

Initialise the cache

Usage

init_cache(endpoint, query, cache, layer_details, my_token = NULL, id_field)

Arguments

endpoint

the endpoint against which to query

query

the query to execute

cache

either: the cache path supplied by the user; a value of TRUE for using automatic cache path (based on endpoint) or NULL for no caching

layer_details

the layer details argument supplied by get layer details

my_token

the authentication token returned by get_token or other oauth method

id_field

the id field against which to renew the cache

Value

a cache object defining the cached data & various bits of info to determine how the cache should be updated if at all


MatthewJWhittle/getarc documentation built on April 22, 2023, 12:16 p.m.