You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is 255 always used for the capacity in the examples?
No real reason, just because it's the largest possible capacity size for generic I with type u8
What exactly does this mean and what effects would a different value have?
The capacity of the ConstLru is the maximum number of items you can store in it. Beyond that, attempting to insert an item with a new key will evict the least recently used item. See docs for https://docs.rs/const-lru/latest/const_lru/struct.ConstLru.html#method.insert. Increasing it will increase the size of the ConstLru by the number of bytes required to store the additional keys, values, and additional indexes
Why is 255 always used for the capacity in the examples?
What exactly does this mean and what effects would a different value have?
The text was updated successfully, but these errors were encountered: