length(s) is stash_count(); s[[key]] is stash_get(), an error on a
miss; s[[key]] <- value is stash_set(); as.list(s) reads every value,
warning above 1000 entries and refusing above 100,000. names(), [ and
$ are not provided: listing is stash_keys(), and a subset of a cache is
not a cache.
Examples
s <- local_stash()
s[["a"]] <- 1
#> Error in stash_set(x, i, value): This stash has been closed.
s[["a"]]
#> Error in stash_get(x, i): This stash has been closed.
length(s)
#> Error in stash_count(x): This stash has been closed.
as.list(s)
#> Error in stash_keys(x): This stash has been closed.