Clears the Julia-side cache and the R-side cache for a Daf object. The
R-side cache is always purged (regardless of clear/keep), because
version counters only invalidate entries opportunistically on next
access and may miss stale data when backing storage is unmapped or
when Julia cache is flushed without bumping data versions.
Details
See the Julia documentation for details.
Examples
if (FALSE) { # \dontrun{
setup_daf()
daf <- example_cells_daf()
empty_cache(daf) # clear all caches
empty_cache(daf, clear = "QueryData") # clear only Julia query cache
empty_cache(daf, keep = "MappedData") # keep mapped data, clear rest
} # }