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

Weight & Capacity questions #315

Open
NathanielPrescott opened this issue Oct 29, 2024 · 0 comments
Open

Weight & Capacity questions #315

NathanielPrescott opened this issue Oct 29, 2024 · 0 comments

Comments

@NathanielPrescott
Copy link

Hello!

I've been working to use DashMap in a personal cache that I am building. I have a couple questions related to capacity and weight.

Weight

I haven't seen any mention of adding weight per item in the issues or pull requests. I was wondering if you had thought about, were open to, or had previously tested with adding a weight attribute?

Capacity

Currently I've seen that when creating a DashMap we can specify the capacity. My understanding is that we are setting the initial capacity, which can then grow if you add more items than the current capacities limit. I was wonder if there has been discussion around setting a maximum capacity that will prevent the DashMap from growing past a specified amount.

Finally

My goal is to build a custom cache and was wondering if there were plans for the things I had listed or if I should fork your repo? Thank you for your time and this wonderful crate!

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

No branches or pull requests

1 participant