Using Redis/Redict/Valkey in Python (2024 tutorial)
ฝัง
- เผยแพร่เมื่อ 5 พ.ค. 2024
- Redis (and forks thereof) is an astoundingly fast persistent caching system, and on top of that, it's ridiculously easy to use! If that's not a great combination, I don't know what is.
(P.S.: We're actually using one of the forks in this video, but this works exactly the same for normal Redis, as well as other forks too!)
-
If you enjoy my content, consider supporting me on Patreon or becoming a member!
• Patreon: / carberra
• Membership: / @carberra
Follow me elsewhere for even more Carberra!
• Discord: / discord
• Instagram: / carberratutorials
I get a lot of people asking, so here's my setup!
• Visual Studio Code: • My Visual Studio Code ...
• Terminal: • Make your terminal loo...
-
If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.
#python #coding #howto
Great video!
Would be interested to drag race each of the different Redis forks and also how this does vs. good old file writes.
Thanks! All the forks will probably be the same speed at the moment as they've forked from what is currently the latest version of Redis OSS. I know something like RocksDB (only heard of it through comments!) is faster purely because that doesn't use an external server, but Redis is about as fast as it gets out-of-process.
An even easier way to persist data in your application is to use an embedded key value database like rocksdb. There is a python library called rocksdict that make it easy to implement.
Huh, yeah that does actually look pretty cool. Will give that a go!
Love it!!!!!!!!!!
hi, I am new to python, do you have python series for beginners? or could you please suggest a channel.
I have the How to Python series which should help with that. Indently is also a good channel for starting new.
@@Carberra Thank you! appreciate that.