Server-Side Rendering with Redis Cache🚀
This page showcases server-side rendering (SSR) enhanced with Redis caching. Data retrieval occurs on the server through getServerSideProps, ensuring fresh content on each request. On the initial load, the server fetches data from the external API and stores the result in Redis. For any following requests made within 60 seconds, the server bypasses the API and delivers the data directly from the Redis cache, improving speed and efficiency. You can monitor the cache behavior in real-time by observing the cache status indicator below.
Users Directory
Fetched server-side from JSONPlaceholder API, cached via Redis.
MD
Mrs. Dennis Schulist
Considine-Lockman
NR
Nicholas Runolfsdottir V
Abernathy Group
GR
Glenna Reichert
Yost and Sons