strategies: Strategies for caching items.

strategiesR Documentation

Strategies for caching items.

Description

The function memo accepts an argument 'key' which specifies the keying strategy.

Usage

digest_key(fn, cache, digest = digest::digest)

pointer_key(fn, cache)

hybrid_key(fn, cache, digest = function(x) digest::digest(x, "md5"))

Arguments

fn

A function whose results should be cached.

cache

A cache object.

digest

A digest function to use.

Value

A memoized function.


memo documentation built on May 29, 2024, 4:18 a.m.