cache_fs2: Alternative to 'memoise::cache_filesystem()'

Description Usage Arguments Details

View source: R/cache-fs2.R

Description

memoise::cache_filesystem() stores all caches in a single directory which degrades filesystem performance when you have a large number of cache files. This function adds a second level subdirectory structure to help mitigate this issue. Future versions will enable the caller to choose the number of levels. This works with all digest::digest() hashing algorithms.

Usage

1
cache_fs2(path, algo = "xxhash64", compress = FALSE)

Arguments

path

Directory in which to store cached items.

algo

The hashing algorithm used for the cache, see digest::digest() for available algorithms.

Details

Two additional functions are provided in slots in the returned list:


hrbrmstr/kbmemoise documentation built on May 29, 2020, noon