ext_cache: Extension cache

View source: R/cache.R

ext_cacheR Documentation

Extension cache

Description

Builds an ext_cache object: a list of closures bound to a cache directory, implementing CRUD over cached .duckdb_extension files. Files are laid out under ⁠<cache_path>/<version>/<platform>/<name>.duckdb_extension⁠.

Usage

ext_cache(cache_path = ext_cache_path())

Arguments

cache_path

Character scalar. Cache root directory. Defaults to ext_cache_path().

Value

An ext_cache object (a list of closures) with elements:

  • .path: the cache root.

  • get(name, version, platform): path to the cached extension, or NULL.

  • add(name, version, platform, src): copies src into the cache.

  • list(): data frame of cached extensions.

  • del(name, version, platform): removes a cached extension. When version and platform are omitted, removes all cached entries for name.

Examples

cache <- ext_cache(file.path(tempdir(), "quak-cache"))
cache$.path

quak documentation built on June 9, 2026, 5:09 p.m.