Tips and Tricks: Caching paginated results in API with Redis and Laravel

preview_player
Показать описание
In this video, I am going to show you how you can use the redis caching to store pagination based request objects and stop hitting the database again and again for results.
Рекомендации по теме
Комментарии
Автор

ok now what if you have a limit query param which limits the number of results per page. now u will have a problem: the first user makes request with limit = 5 and offset = 10, this is cache in redis. but... second user makes request with limit = 10 and offset = 10. u will have missing data in the cache for offset key 10. what now?

throwaway-lozw
Автор

Great video. Could you please share your VSCode config/plugins btw?

michaelkrasilynets
Автор

how do you make that typing "pa" is the same as "php artisan" ? D:

saphi