<div dir="ltr">Hi Experts,<div>I am looking for a way to invalidate a cache based on a set of different "keys" that can be combined with each other with operators like "AND", "OR" or "NOT".</div><div><br></div><div>So I am looking for something that basically behaves like the xkey mod from varnish-modules[1] with the only difference that it can invalidate cache objects in an SQLish way.</div><div><br></div><div>For example:</div><div>xkey.NewPurge("userfoo OR projectbar AND NOT instancebaz")</div><div><br></div><div>Do you know a way i could do that in varnish? I am capable of programming and writing VCL.</div><div><br></div><div>[1]  <a href="https://github.com/varnish/varnish-modules/blob/master/src/vmod_xkey.vcc">https://github.com/varnish/varnish-modules/blob/master/src/vmod_xkey.vcc</a></div><div><br></div><div>Thanks for your time</div><div>Alexandros</div><div><br></div></div>