Closed bitcoinbrisbane closed 6 months ago
The recent update introduces caching capabilities to specific functions within our application, allowing for improved performance by storing content and metadata in Redis. This enhancement is applied to functions that fetch ordinal content and metadata, with the added flexibility of controlling caching behavior through a new parameter. The integration of this feature into our FastAPI framework ensures a more efficient and responsive user experience.
File(s) | Change Summary |
---|---|
.../src/clients/hiro.py |
Added use_cache parameter to get_ordinal_content and get_ordinal functions for Redis caching. |
.../src/main.py |
Updated ordinal and image functions to include use_cache parameter, controlling caching in FastAPI application. |
🐰✨
In the code's burrow, deep and wide,
A cache was placed, with pride inside.
Faster content, oh so bright,
Withuse_cache
in the night.
Through FastAPI, we glide and slide,
Our app now swift, with Redis as our guide.
🌟🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit