MENU

Fun & Interesting

Caching with Redis and Django!

BugBytes 9,651 lฦฐแปฃt xem 3 months ago
Video Not Working? Fix It Now

โ˜•๏ธ ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ:
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
๐Ÿฆ Twitter: https://twitter.com/bugbytesio

๐Ÿ“š ๐—™๐˜‚๐—ฟ๐˜๐—ต๐—ฒ๐—ฟ ๐—ฟ๐—ฒ๐—ฎ๐—ฑ๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—ถ๐—ป๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป:
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

Comment