This version of memoise also tracks the last access time for each cached result.
1 2 | memoise_with_result_size_limit(f, ..., envir = environment(f),
cache = cache_memory2(), result_size_limit = 1048576L)
|
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.