Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prune failed after reset #38

Closed
toomish opened this issue Apr 29, 2023 · 0 comments · Fixed by #39
Closed

prune failed after reset #38

toomish opened this issue Apr 29, 2023 · 0 comments · Fixed by #39

Comments

@toomish
Copy link

toomish commented Apr 29, 2023

After reset call prune failed when tries to delete many items at once.

cm <- cachem::cache_mem(max_size = object.size(1:100))

for (key in c("a", "b"))
        cm$set(key, TRUE)

cm$reset()
cm$set("c", 1:100)

Results:

Error in vapply(keys, remove_one_, TRUE) : values must be length 1,
 but FUN(X[[1]]) result is length 0
Calls: <Anonymous> -> prune -> remove_ -> vapply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant