dgraph-io / ristretto

A high performance memory-bound Go cache
https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/
Apache License 2.0
5.64k stars 374 forks source link

add test to ensure calling set after close does not panic #298

Closed joshua-goldstein closed 3 months ago

joshua-goldstein commented 2 years ago

In a prior version of Ristretto, calling set after close could cause a panic. We are adding this test to check for this behavior and prevent a regression. Test was originally written by @josephschorr in this PR.

github-actions[bot] commented 3 months ago

This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.