Skip to contents

get_cache_used() returns the amount of memory currently in use for GDAL block caching. Wrapper of GDALGetCacheUsed64() with return value in MB by default.

Usage

get_cache_used(units = "MB")

Arguments

units

Character string specifying units for the return value. One of "MB" (the default), "GB", "KB" or "bytes" (values of "byte", "B" and empty string "" are also recognized to mean bytes).

Value

A numeric value carrying the integer64 class attribute. Amount of the available cache memory currently in use in the requested units.

Examples

get_cache_used()
#> integer64
#> [1] 0