Improve clarity around BatchKeyFn function usage #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.