Add comment about pruning

This commit is contained in:
Winston Chang
2018-06-25 15:34:43 -05:00
parent 75f1ee0082
commit 90fbf7d50f
3 changed files with 21 additions and 0 deletions

View File

@@ -30,6 +30,14 @@ environment. Objects can be stored and retrieved using the \code{get()} and
according to the parameters \code{max_size}, \code{max_age}, \code{max_n},
and \code{evict}.
}
\details{
In a \code{MemoryCache}, R objects are stored directly in the cache; they are
not \emph{not} serialized before being stored in the cache. This contrasts
with other cache types, like \code{\link{DiskCache}}, where objects are
serialized, and the serialized object is cached. This can result in some
differences of behavior. For example, as long as an object is stored in a
MemoryCache, it will not be garbage collected.
}
\section{Cache pruning}{