cache: Cache

cacheR Documentation

Cache

Description

sensorweb4R cache functions.

Usage

clear.cache()

get.cache()

set.cache(cache)

set.cache.value(key, value)

set.cache.values(...)

get.cache.value(key)

get.cache.keys()

Arguments

cache

A list object to be used as the cache.

key

The key to be used to insert the value.

value

The value to be inserted under key.

...

Named parameters to be inserted into the cache.

Details

Most requests to the Timeseries are cached for performance reasons. The parsed JSON responses are saved in a global cache object (with the name sensorweb4R:::CACHE_NAME). In this list response objects are saved by their respective URL.

Functions

  • clear.cache: Clears the cache.

  • get.cache: Gets the cache object.

  • set.cache: Sets the cache object.

  • set.cache.value: Sets a cache value.

  • set.cache.values: Sets multiple cache values.

  • get.cache.value: Gets a cache value.

  • get.cache.keys: Gets the current cache keys.

Author(s)

Christian Autermann c.autermann@52north.org


52North/sensorweb4R documentation built on Oct. 14, 2024, 7:24 p.m.