Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver3
313いいね 7043回再生

Caching with Redis and Django!

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
ko-fi.com/bugbytes

⭐Top resource to learn Python - 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: 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: bugbytes.io/posts/
👾 Github: github.com/bugbytes-io/drf-course-api
🐦 Twitter: twitter.com/bugbytesio

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Redis DockerHub: hub.docker.com/_/redis
DRF Caching: www.django-rest-framework.org/api-guide/caching/
django-redis: github.com/jazzband/django-redis

#python #django #webdevelopment #djangorestframework

コメント