Caches table lists and codebooks on disk to speed up repeated calls. Optionally set a time-to-live (TTL) for cache entries.
Examples
# Enable caching in a temporary directory (for demo purposes)
cache_dir <- nso_cache_enable(dir = tempdir())
# Check status
nso_cache_status()
#> $enabled
#> [1] TRUE
#>
#> $dir
#> [1] "/tmp/RtmpXS9XqZ"
#>
#> $has_cache
#> [1] TRUE
#>
# Disable when done
nso_cache_disable()
