Closed AmoabaKelvin closed 8 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
ishortn-ink | ✅ Ready (Inspect) | Visit Preview | Feb 1, 2024 11:39am |
Introduction of Caching Mechanism A new design document has been added outlining the issue and the proposed solution. This focuses on implementing a caching system for our software to increase speed and efficiency.
New dependency and its incorporation A new package '@upstash/redis', has been added to our dependencies. This package will be essential to carry out the newly proposed caching system. Certain methods in the link-actions file have been adjusted to work with this new package.
Modification in API Specific bulk of adaptations to our API have been made. The system now uses newly imported cache methods when pulling data. This is set to enhance retrieval speed.
Implementation of Redis Cache A new file has been created to execute tasks related to the Redis cache, like adding, retrieving, and removing links from it. Incorporation of these cache functions is intended to optimize data handling.
Incorporating new environment variables Two new environment variables have been introduced to interact and manage connections with the Redis cache, thereby enhancing control over data caching.
When retrieving urls, we have implemented caching to ensure that the most frequent links are cached, making the number of read operations on the database significantly reduced! This also improves the overall performance of the system by reducing the response times during link resolutions and redirects.