memoise_with_result_size_limit: A version of 'memoise::memoise' which does not cache results...

Description Usage Arguments

Description

This version of memoise also tracks the last access time for each cached result.

Usage

1
2
memoise_with_result_size_limit(f, ..., envir = environment(f),
  cache = cache_memory2(), result_size_limit = 1048576L)

Arguments

f

Function of which to create a memoised copy.

...

optional variables specified as formulas with no RHS to use as additional restrictions on caching. See Examples for usage.

envir

Environment of the returned function.

cache

Cache function.#'

result_size_limit

maximum size (in bytes) of results stored in cache. Results above this size are never cached. Default: 1048576 bytes (1MB)


coolbutuseless/memoisetools documentation built on May 31, 2019, 12:45 a.m.