☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes
⭐Top resource to learn Python - https://datacamp.pxf.io/kOjKkV ⭐
In this video, we'll learn about caching and how to setup and use Redis in a Django application. We'll touch upon invalidation strategies with Django signals, and the pros/cons of caching.
Starter Code: https://github.com/bugbytes-io/drf-course-api
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:44 Setting up Redis with Docker
02:01 Setting up Python and Django with Redis
04:12 Caching product list page with cache_page decorator
10:41 Invalidating cache with Django signals
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/drf-course-api
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Redis DockerHub: https://hub.docker.com/_/redis
DRF Caching: https://www.django-rest-framework.org/api-guide/caching/
django-redis: https://github.com/jazzband/django-redis
#python #django #webdevelopment #djangorestframework