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

Query about interface (possible misunderstanding of semantics) #7

Open
tomjridge opened this issue Feb 18, 2020 · 2 comments
Open

Query about interface (possible misunderstanding of semantics) #7

tomjridge opened this issue Feb 18, 2020 · 2 comments

Comments

@tomjridge
Copy link

Great library!

If I have an entry k->v, and I want to change it to k->v', is there a way to do this without altering the "least recently used" information? (Does this question make sense?)

I think I want something like the "add" function, but where the k->v' binding is not necessarily the "most recently used".

@tomjridge tomjridge changed the title Query about semantics Query about interface (possible misunderstanding of semantics) Feb 18, 2020
@tomjridge
Copy link
Author

Looking at the implementation, and also at psq, I think I want a function like psq's "adjust".

@tomjridge
Copy link
Author

I should add that in my application, all v have weight 1. So replacing k->v with k-> v' doesn't need to adjust weights or anything like that.

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