Closed feymartynov closed 4 months ago
Hi!
It’s unfortunately intended. HashCache is basically the same with HashMap except that it evicts an entry if the bucket is full instead of allocating backup linked list storage, even when there are free slots in other buckets. I’ll add this to the document!
Updated the doc!
The following example often panics proving that HashCache may evict entries even when capacity is not yet fully occupated.
Is this a bug or normal behavior? If it's normal, I think it should be documented.