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

[Documentation]: Describe guarantees (or lack thereof) under aliased mutation of arguments and return values #381

Open
varungandhi-src opened this issue Jul 4, 2024 · 0 comments
Labels
area/documentation Documentation related issues.

Comments

@varungandhi-src
Copy link

What version of Ristretto is the target?

Latest

Documentation.

The docs for the Cache type don't say anything about the interaction of aliased mutations with Get/Set. Is it fair to assume the following: "It is NOT safe to modify the return value of Get or to modify the key or value that were passed to Set."

Or does the implementation do deep-copying?

Additional information.

No response

@varungandhi-src varungandhi-src added the area/documentation Documentation related issues. label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation related issues.
Development

No branches or pull requests

1 participant