]> git.kaiwu.me - haproxy.git/commit
MINOR: shctx: allow consumers to customize eviction strategy
authorMaxime Henrion <mhenrion@haproxy.com>
Fri, 26 Jun 2026 20:40:26 +0000 (16:40 -0400)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2026 14:42:35 +0000 (16:42 +0200)
commit731b71363f51c03b4517059dcb3945f667a82042
tree1e0111dc17570dada24653b7edfb2fd676e47324
parent2a27062f9af8f1b6b94f8804088685a09b9357ae
MINOR: shctx: allow consumers to customize eviction strategy

This introduces a make_room() callback that consumers can provide in
order to implement more specific eviction strategies. To be used in the
HTTP cache code. This goes in hand with a new shctx_row_truncate()
function that allows consumers to truncate a row, which can be used in
the make_room() callback.
include/haproxy/shctx-t.h
include/haproxy/shctx.h
src/shctx.c