Let's Learn Django - Caching with Redis

  Рет қаралды 16,643

Vandad Nahavandipoor

Vandad Nahavandipoor

Күн бұрын

In this video you will learn about creating a simple Django project with one application where we use class-based views and templates together with integration with Redis to cache model objects in memory and retrieve them from memory.
The intro song to this video is from "yummie" (freesound.org/...)
2:50 Installing Redis with Homebrew(need to install it)
3:58 Start Redis and make sure its running
28:26 Pip Install Redis
29:10 Setting Up Cache
30:04 Implementation of Redis
🐦 Twitter: / vandadnp
🔵 LinkedIn: / vandadnp
🤝 Want to support my work? buymeacoffee.c...

Пікірлер: 25
@kramstyles
@kramstyles 5 ай бұрын
I love your video man. I didn't skip and I'm glad I stuck till the end. You made it all simple especially for people who have no idea how to use Redis (or are too scared for it at first). I'm glad you included the entire process.
@toubibmaroc2148
@toubibmaroc2148 2 жыл бұрын
I think it's a good idea to know your material very well before you publish a tutorial. I wish you all the best!
@mangelozzi
@mangelozzi 2 жыл бұрын
I agree, feels like this tutorial is about 30 mins ahead of me just experimenting myself.
@TheCouncellor7
@TheCouncellor7 2 жыл бұрын
Thank you for the raw tutorial Vandad, Not everything runs as smooth as the tutorials out there show, Part of development is getting everything to work together, Thanks also for sharing the thinking process and honesty, keep it up 👍
@sadegh9614
@sadegh9614 2 жыл бұрын
The training was very good I wish you also taught how to set time for cache !
@VandadNP
@VandadNP 2 жыл бұрын
Great idea!
@omidestaji3457
@omidestaji3457 2 жыл бұрын
Thank you Vandad (from IRAN)
@VandadNP
@VandadNP 2 жыл бұрын
Azizam khahesh mikonam 👍🏻
@MrZzm88
@MrZzm88 2 жыл бұрын
Thank you for the great tutorial! What's the plugin in video to show realtime error when coding?
@MrZzm88
@MrZzm88 2 жыл бұрын
I found it : it's Error Lens
@thinhnguyenvan7003
@thinhnguyenvan7003 2 жыл бұрын
I like the way you laughing. It is so peaceful😛
@VandadNP
@VandadNP 2 жыл бұрын
Haha, good to know
@DavidKotschessa
@DavidKotschessa 2 жыл бұрын
Love me some meat food. 🤣 Thanks for this - needed to cache up (see what I did there?) quickly on this topic.
@VandadNP
@VandadNP 2 жыл бұрын
Perfect! 😆
@sabarinathjv4511
@sabarinathjv4511 2 жыл бұрын
consider a new article model which has FK connection to User , i had a get fn which get all articles of the logged in user , at initial state the user will have only one article , at the first time calling the get fn we get first object , and the object is saved to cache , now the problem , more articles assigned to the user , and the get fn only returns the first object in its my , how can we solve this ?
@michaeljayarizala9305
@michaeljayarizala9305 2 жыл бұрын
How about on every time an article is assigned to the user, you update the cache as well such as appending to the cache ?
@Rei-km7yj
@Rei-km7yj 2 жыл бұрын
Great tutorial. It was helped me.
@devbazregari8879
@devbazregari8879 2 жыл бұрын
awesome toturial bro . keep going .
@MartinoxxHD
@MartinoxxHD 2 жыл бұрын
What happens with cache if a recipe is updated?
@osvaldo_moncion
@osvaldo_moncion 2 жыл бұрын
At some point in your logic you must clear the cache when an update is made to the model.
@hdphoenix29
@hdphoenix29 2 жыл бұрын
Mashala dash vandad
@VandadNP
@VandadNP 2 жыл бұрын
Mamnoonam 💙
@supriyomitra6135
@supriyomitra6135 2 жыл бұрын
Good tutorial, but why do you take the trouble of using vscode for python coding? It is much more convenient to use a text editor (like gedit on ubuntu or notepad on win) along with the command line to execute the code.
@jeanlasalle2351
@jeanlasalle2351 2 жыл бұрын
Nah, it requires an operating system for that : Why take the trouble of using one for python coding ? It is much more convenient to engrave your HDD by hand along with your brain to execute the code. You don't need much hardware that way, which is a plus as CPU are expensive !
@VandadNP
@VandadNP 2 жыл бұрын
I believe most people use some sort of text editor for Python development, either PyCharm, VSCode or Sublime and many more alternatives are out there. It makes the whole process a lot more convenient with built-in support for the language.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 363 М.
Оптимизация Django. 8 - Redis и ручной кеш
24:48
Senior Pomidor Developer
Рет қаралды 10 М.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 29 МЛН
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 2,9 МЛН
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 51 МЛН
Django Nginx Cache | Vary Header | Header Directives
46:47
Very Academy
Рет қаралды 4,4 М.
Cache Systems Every Developer Should Know
5:48
ByteByteGo
Рет қаралды 500 М.
Python and Redis Tutorial - Caching API Responses
32:26
Part Time Larry
Рет қаралды 56 М.
Enumerations in Dart - Learn About Enums and Enhanced Enums in Dart
47:02
Vandad Nahavandipoor
Рет қаралды 6 М.
Deploying Django with Docker Compose, Gunicorn and Nginx
15:59
Django road
Рет қаралды 97 М.
django Architecture - Connection Management
15:10
Hussein Nasser
Рет қаралды 49 М.
DjangoCon Europe 2023 | Caching everywhere
35:17
DjangoCon Europe
Рет қаралды 1,2 М.
Redis Crash Course
27:31
Web Dev Simplified
Рет қаралды 632 М.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 29 МЛН