% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/widr.R
\name{wid_cache}
\alias{wid_cache}
\title{Interact with the WID response cache}
\usage{
wid_cache(action, key = NULL, value = NULL)
}
\arguments{
\item{action}{One of \code{"get"}, \code{"set"}, \code{"list"}, \code{"clear"}.}

\item{key}{Cache key string (required for \code{"get"} and \code{"set"}).}

\item{value}{Value to store (\code{"set"} only).}
}
\value{
For \code{"get"}: the cached object or \code{NULL}. For
\code{"list"}: character vector of cache keys. For \code{"set"} and
\code{"clear"}: invisibly, the stored value or file count removed.
}
\description{
Low-level access to get, set, list, or clear cached API responses.
}
\examples{
wid_cache("list")
}
