Closed radulucut closed 1 month ago
Can you please briefly explain how this changes the caching behavior?
I've updated the description. Let me know if you have any questions. Thanks.
We were caching the responses before as well, so if I understand this correctly, the main change is the cleanup after 30 seconds?
yes, with additional concurrency safety
This allows for safely getting and setting cached responses in memory from the client. Also, it adds a cleanup function and a goroutine that will periodically remove the expired cached responses to free up the memory for long running commands.