% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fetch.R
\name{save_cache}
\alias{save_cache}
\title{Save the taxodist lineage cache to disk}
\usage{
save_cache(file)
}
\arguments{
\item{file}{Path to the \code{.rds} file to write.}
}
\value{
Invisibly returns \code{NULL}.
}
\description{
Serialises the current session cache to an \code{.rds} file so it can be
restored in a future session with \code{\link[=load_cache]{load_cache()}}. Useful for
reproducibility and for avoiding repeated network requests.
}
\examples{
\donttest{
tmp <- tempfile(fileext = ".rds")
save_cache(tmp)
unlink(tmp)
}
}
\seealso{
\code{\link[=load_cache]{load_cache()}}, \code{\link[=clear_cache]{clear_cache()}}
}
