% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fetch.R
\name{load_cache}
\alias{load_cache}
\title{Load a previously saved taxodist cache from disk}
\usage{
load_cache(file)
}
\arguments{
\item{file}{Path to an \code{.rds} file created by \code{\link[=save_cache]{save_cache()}}.}
}
\value{
Invisibly returns \code{NULL}.
}
\description{
Restores lineage data saved with \code{\link[=save_cache]{save_cache()}} into the current session
cache, avoiding network requests for taxa already retrieved in a previous
session. The file structure is validated before the current cache is
modified.
}
\examples{
\donttest{
tmp <- tempfile(fileext = ".rds")
save_cache(tmp)
load_cache(tmp)
unlink(tmp)
}
}
\seealso{
\code{\link[=save_cache]{save_cache()}}, \code{\link[=clear_cache]{clear_cache()}}
}
