Delete Objects based on REGEX.
dormando at rydia.net
Wed Jul 25 19:59:21 UTC 2007
There was a decent discussion of this during the hackathon:
Seems interesting, don't recall if anyone was specifically against it.
The implementation details are a bit foggy, and someone has to go do it
As of now, there's no way to do it.
Antonello Provenzano wrote:
> I see no point in implementing such this way (at least personally I
> don't) for removing keys: executing a RegEx compilation is a stressing
> operation and requires memory and CPU to execute it. The benefits you
> get by non-hitting the database (that means not making the SQL
> statement to be compiled and executed or, in case it's cached, just
> executed) you will loose by compiling the RegEx and execute it.
> My 2cents.
> On 7/25/07, P R E M <prem_somanin at yahoo.com> wrote:
>> Hi All,
>> Is there a way to delete values based on a key specified as a regular
>> Example, I store some data in three formats and these keys are created as
>> key-1-xyz, key-2-xyz, key-3-xyz.
>> here xyz may take any value and is unique for all the three formats
>> Now, when there is any change in actual data, all the three formats
>> have to be deleted and at this point I have no idea about "xyz".
>> Is there a provision to delete objects by specifying a an expression
>> like : "key-%", so that every object whose hash key name starts with
>> "key-" will be deleted ?
>> Hope I am clear. Please get back to me for details.
>> Advance thanks and Regards,
>> Yahoo! oneSearch: Finally, mobile search
>> that gives answers, not web links.
More information about the memcached