Skip to contents

Scans the specified cache directory and returns a summary of all valid cache files found. This provides a high-level view of the cache state, including which functions are cached, how much space they occupy, and when they were created.

Usage

cacheList(cache_dir)

Arguments

cache_dir

A character string specifying the path to the cache directory.

Value

A data.frame where each row represents a cache file, containing the following columns:

  • file: The filename of the cache entry.

  • fname: The name of the cached function (if available in metadata).

  • created: The creation timestamp.

  • size_bytes: The size of the file in bytes.

Returns an empty data frame if the directory is empty or contains no valid cache files.