Skip to contents

[Experimental]

Usage

curator_cache_config(enabled = NULL, ttl_secs = NULL, max_entries = NULL)

Arguments

enabled

Logical, whether caching is enabled

ttl_secs

Numeric, default time-to-live in seconds

max_entries

Numeric, maximum number of cached entries

Value

List of previous settings (invisibly)

Examples

if (FALSE) { # \dontrun{
# Disable caching temporarily
old_config <- curator_cache_config(enabled = FALSE)

# ... do work without caching ...

# Restore previous settings
do.call(curator_cache_config, old_config)

# Increase TTL to 10 minutes
curator_cache_config(ttl_secs = 600)

# Limit cache to 50 entries
curator_cache_config(max_entries = 50)
} # }