FastAPI Tutorial: Give some more background on Redis #22308
Labels
bug
Issue identified by VS Code Team member as probable bug
documentation
triage-needed
Needs assignment to the proper sub-team
verified
Verification succeeded
Milestone
Testing #22302
I'm looking at the 'Replace the database' section. I'm new to Redis.
It explains nicely what line I need to replace with what, but I'm puzzled of what the new code means and how redis works.
redis_client.hincrby(f"item_id:{item_id}", "quantity", quantity)
what does this call do? What is
hincrby
. What's the effect to the database?Maybe it is easier to start with the
set:
This seems to store an object with multiple properties. And
hincrby
allows to increment one of the properties?The text was updated successfully, but these errors were encountered: