memoise_with_mixed_backend: 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
3
memoise_with_mixed_backend(f, ..., envir = environment(f),
  cache1 = cache_memory2(), cache2 = cache_filesystem2(),
  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.

cache1

Cache function 1 - must use the same algo as cache2

cache2

Cache function 2 - must use the same algo as cache1

result_size_limit

maximum size (in bytes) of results stored in cache1. Results above this size are stored in cache2. Default: 1048576 bytes (1MB)


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