MINOR: cache: Add a max-secondary-entries cache option
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 10 Dec 2020 16:58:43 +0000 (17:58 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 15 Dec 2020 15:35:09 +0000 (16:35 +0100)
commit5853c0c0d527d406e5eb54dec9c21ff1478dc16e
tree46a8555f4e3d817c6d01715e35254632c871276a
parent73be796462d5d96672a7082ec1023ee87d63a4fb
MINOR: cache: Add a max-secondary-entries cache option

This new option allows to tune the maximum number of simultaneous
entries with the same primary key in the cache (secondary entries).
When we try to store a response in the cache and there are already
max-secondary-entries living entries in the cache, the storage will
fail (but the response will still be sent to the client).
It defaults to 10 and does not have a maximum number.
doc/configuration.txt
src/cache.c