On Sep 4, 2007, at 13:43 , Steven Grimm wrote:

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.

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.

        What were you using as a regex engine?

--
Dustin Sallings


Reply via email to