Debian Codegraph @

man/memoryCache.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/deprecated.R
3 \name{memoryCache}
4 \alias{memoryCache}
5 \title{Create memory cache (deprecated)}
6 \usage{
7 memoryCache(
8 max_size = 200 * 1024^2,
9 max_age = Inf,
10 max_n = Inf,
11 evict = c("lru", "fifo"),
12 missing = key_missing(),
13 exec_missing = deprecated(),
14 logfile = NULL
15 )
16 }
17 \arguments{
18 \item{max_size}{Maximum size of the cache, in bytes. If the cache exceeds
19 this size, cached objects will be removed according to the value of the
20 \code{evict}. Use \code{Inf} for no size limit. The default is 512 megabytes.}
21
22 \item{max_age}{Maximum age of files in cache before they are evicted, in
23 seconds. Use \code{Inf} for no age limit.}
24
25 \item{max_n}{Maximum number of objects in the cache. If the number of objects
26 exceeds this value, then cached objects will be removed according to the
27 value of \code{evict}. Use \code{Inf} for no limit of number of items.}
28
29 \item{evict}{The eviction policy to use to decide which objects are removed
30 when a cache pruning occurs. Currently, \code{"lru"} and \code{"fifo"} are supported.}
31
32 \item{missing}{A value to return when \code{get(key)} is called but the key is not
33 present in the cache. The default is a \code{\link[cachem:key_missing]{key_missing()}} object. It is
34 actually an expression that is evaluated each time there is a cache miss.
35 See section Missing keys for more information.}
36
37 \item{exec_missing}{Deprecated.}
38
39 \item{logfile}{An optional filename or connection object to where logging
40 information will be written. To log to the console, use \code{stderr()} or
41 \code{stdout()}.}
42 }
43 \description{
44 Create memory cache (deprecated)
45 }
46 \keyword{internal}