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