Description Usage Arguments Details Value Functions See Also Examples
These functions provides basic procedures to work with the
EOCubes cache system.
1 2 3 4 5 6 7 8 9 | save_cache()
cached_entries()
cache_cube(cube, which = NULL)
flush_cache(cube = NULL, which = NULL)
is.caching(x)
|
cube |
A |
which |
A |
x |
Either a |
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.
None
A character vector.
None
None
A logical value.
save_cache: Persists all cached data.
cached_entries: Lists all cached entries.
cache_cube: Fetches all tiles in a cube and cache its
contents.
flush_cache: Discards all cached tiles in a cube.
is.caching: Check if a given object (either
EOCubes_remote or EOCubes_cube) has cache system enabled.
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.