Add caching in toddlers

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-12-17 16:39:39 +01:00
parent 82a3175c48
commit f4439d42c1
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 10 additions and 0 deletions

View file

@ -10,6 +10,7 @@ RUN dnf install -y \
cairo-gobject-devel \
gobject-introspection-devel \
libmodulemd \
libmemcached-devel \
&& dnf clean all
USER 1001

View file

@ -51,6 +51,15 @@ blocked_toddlers = [
"pdc_update_critpath",
]
# Caching. The default is in-memory caching, here is an example for memcached.
[consumer_config.cache]
backend = "dogpile.cache.pylibmc"
expiration_time = 3600
[consumer_config.cache.arguments]
url = ["memcached02{{ env_suffix }}", "memcached01{{ env_suffix }}"]
binary = true
behaviors = {"tcp_nodelay": true, "ketama": true}
[consumer_config.default]
# Configuration common to all toddlers.
#