Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement
SyncLruCache
(#5259)
This is just a proof of concept. Implement a cache that works from a "&" context. - get_from_cache_or_insert - gets a value or inserts a computed value - get_from_cache - tries to get value TODO: - [x] rename methods - [x] add new methods - [x] benchmarks - [x] comments - [x] add more tests. - [x] one example of replacing real code - [x] implement example with `lru` (done in another PR) - [x] Use `once_cell` instead of `lazy_static!` (done in another PR). See #5145 Was blocked by: #5512
- Loading branch information