Mailing List Archive

libvmod / xkey
Hi Folks,

I'm evaluating the xkey module for use in my workflow and while I have
tested successfully the basic functionality I am left with one question.

Is there any way to provide criteria for matching keys? It seems that
when specifying multiple space-separated tags during the purge, any
matching key will cause a purge. Is there any way ( other than using
regular ban ) to purge based based on matching two or more keys - logical
AND instead of OR for the keys provided?

Regards,
Mark Staudinger
_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
Re: libvmod / xkey [ In reply to ]
On Sun, Sep 24, 2017 at 6:14 AM, Mark Staudinger
<mark.staudinger@nyi.net> wrote:
> Hi Folks,
>
> I'm evaluating the xkey module for use in my workflow and while I have
> tested successfully the basic functionality I am left with one question.
>
> Is there any way to provide criteria for matching keys? It seems that when
> specifying multiple space-separated tags during the purge, any matching key
> will cause a purge. Is there any way ( other than using regular ban ) to
> purge based based on matching two or more keys - logical AND instead of OR
> for the keys provided?

Hi Mark,

This is currently not possible, and that use case would definitely
make sense. We could have a parameter of type ENUM {union,
intersection} defaulting to union (the current behavior).

This is currently not on our roadmap, but we would gladly review
patches for this feature.

Dridi
_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc