cache_functions: Caching functions

Description Usage Arguments Details Value Functions See Also Examples

Description

These functions provides basic procedures to work with the EOCubes cache system.

Usage

1
2
3
4
5
6
7
8
9

Arguments

cube

A EOCubes_cube object.

which

A logical or integer vector indicating which tile to be fetched. If NULL (default) all tiles are fetched.

x

Either a EOCubes_remote or EOCubes_cube object.

Details

The save_cache function saves all cached data into EOCubes:::.local_base directory.

The function cached_entries shows all entries (JSON locations) cached.

The function cache_cube caches and persists all cube tiles contents. Fetching tiles can be an expensive task. You can filter tiles that intersects your area of interest by providing which parameter.

The function cache_flush discards all cached tiles of a cube. If no cube is informed (default), all entries are flushed. To persist the flush, you must call explicitly save_cache function.

Value

None

A character vector.

None

None

A logical value.

Functions

See Also

remote

Examples

1
2
3
4
5
6
7
8
# disable cache system for subsequent fetches on 'x' remote
x <- remote("localhost", FALSE)
# by default cache system is enabled
x <- remote("localhost")
# cache all cube tiles contents
cache_cube(cube("MOD13Q1/006", x))
# persists cached data
save_cache()

e-sensing/EOCubes documentation built on Oct. 21, 2019, 2:30 a.m.