Skip to content

Conversation

@justDMNK
Copy link

Hi,

first of all amazing library.
The documentation, examples and structure make it really easy and fun to implement.

I am opening this pull request to suggest a small change in the documentation around the BatchKeyFn.
From the current documentation I always thought that the function only combines the two strings (prefix and id).
But after troubleshooting and checking the code I realized it uses a "-ID-" format which was not described anywhere. This lead to an issue for me as I prefixed the keys myself when using the SetMany function.

In addition to the documentation changes, I would also suggest replacing the "magic formatting/string" with a exported variable as this makes it easier to prefix the keys when the BatchKeyFn is not applicable.

@viccon
Copy link
Owner

viccon commented Dec 17, 2024

Hi, thank you so much for this PR and your feedback. I'm currently working on a documentation branch to polish it further, and your input is really valuable. I have a lot going on at work right now, but as soon as I have some time, I'll look into incorporating these changes too

@viccon
Copy link
Owner

viccon commented Jan 8, 2025

Hi again,

I've cherry-picked some of the documentation changes that I have been working on while also trying to incorporate your feedback in this PR: #25.

Please let me know if you have any feedback!

@viccon
Copy link
Owner

viccon commented Jan 16, 2025

I'll close this for now given the updated documentation and comments. Please feel free to open an issue if you still feel like it's unclear or could be explained better

@viccon viccon closed this Jan 16, 2025
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

Successfully merging this pull request may close these issues.

2 participants