This PR introduces query caching and performance improvements across multiple services and configurations, utilizing the cachetools library.
Changes:
Added new environment variable:
QUERY_CACHE_TTL (default: 3600 seconds)
About cachetools
Key features of cachetools used in this PR:
TTLCache: A cache with a fixed maximum size and a maximum lifetime for each item.
Configurable ttl (time-to-live) parameters for fine-tuning cache behavior.
Thread-safe implementations suitable for concurrent applications.
These changes aim to improve caching efficiency and overall performance across various services by implementing time-based caching with configurable time-to-live (TTL) values.
This PR introduces query caching and performance improvements across multiple services and configurations, utilizing the
cachetools
library.Changes:
QUERY_CACHE_TTL
(default: 3600 seconds)About cachetools
Key features of cachetools used in this PR:
TTLCache
: A cache with a fixed maximum size and a maximum lifetime for each item.ttl
(time-to-live) parameters for fine-tuning cache behavior.These changes aim to improve caching efficiency and overall performance across various services by implementing time-based caching with configurable time-to-live (TTL) values.
See https://github.com/tkem/cachetools for more details.