strategies {memo}R 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.


[Package memo version 1.1.1 Index]