<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Dustin Sallings wrote:
<blockquote cite="mid:13A3924A-3555-4689-A3DB-78EF17FD2701@spy.net"
type="cite">
<div>
<blockquote type="cite"><font size="2"><font face="Courier New"><span
style="font-size: 10px;"> BP_FLUSH_REGEX_CMD = (BP_S_E | FIELD(0x0,
0)),</span></font></font></blockquote>
<div><span class="Apple-tab-span" style="white-space: pre;"></span>Does
this implementation exist? People have been asking for it a lot.</div>
</div>
</blockquote>
<br>
It does, but Brad felt my implementation wasn't good enough to check
into the official tree. I actually agree with him; it was a quick hack
that is not at all elegant. It basically loops through every key in the
cache comparing against the regex, blocking all other requests while it
runs. On a large cache that means it locks up memcached for a long
period of time, causing client timeouts and so forth.<br>
<br>
We used it once or twice after I wrote it last year, then decided it
was too painful and haven't touched it since. It is not something I
have any interest in fielding support questions about (since I am fully
aware that it sucks) so I haven't been inclined to publish it. Anyone
who wants to can probably reproduce it pretty easily; go for the most
naive implementation you can think of and you'll probably be pretty
close.<br>
<br>
-Steve<br>
</body>
</html>