-
Notifications
You must be signed in to change notification settings - Fork 74
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
cache_put does not work when passing a list of keys #127
Comments
Added a test for this in https://github.com/cschmatzler/nebulex/commit/9c93e4b2d4b079d79716f3dd99cbd46dd4042636 which expectedly fails. |
Hey 👋 ! You are facing that issue with the However, it could be possible to extend the Thanks. |
Hi! In that case, the quick start example in the README is incorrect: Line 169 in ca7e0c4
I'll see if I can help you out and at least get the README updated over the weekend. Have a great day! |
Yeah, you're absolutely right, that is a mistake in the README, I will fix it, and yes, totally agree, I think that would be a good improvement, will try to work on it this weekend! |
Created Issue #128 |
Hey! I pushed to the master branch some changes adding support for |
Hey Carlos! master branch looks great and the code I had in mind works well now. Thanks for the great library and I hope you have a wonderful week! |
Thanks 🙇♂️ !! Will publish a new release with this enhancement very soon!! |
Hi!
Checking out the library right now and trying to follow the examples.
Right in the README, this is shown:
I cannot get this working. Running an
update
method on a record withcache_put(cache, key: {User, usr.id}, match: &match_update/1)
works just fine and updates the one key in the cache with the updated record.Passing multiple keys as a list does add one to
Cache.count_all
, no matter how many keys are in the list, and does not update the{User, usr.id}
key at all.Not sure how to provide a minimal reproduction because I essentially copy and pasted the README.
Cheers
The text was updated successfully, but these errors were encountered: