Prem,

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.
Antonello


On 7/25/07, P R E M <[EMAIL PROTECTED]> wrote:
Hi All,

Is there a way to delete values based on a key specified as a regular 
expression.
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,
Prem





____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC


Reply via email to