I like this idea.<br><br><div><span class="gmail_quote">On 7/6/07, <b class="gmail_sendername">Jan Miczaika</b> <<a href="mailto:jan@hitflip.de">jan@hitflip.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I saw these proposed features for the Hackathon. Unfortunately I can't take in person, wrong continent for me.<br><br>I would like to suggest a feature which would probably address these issues well: tagging keys. Each key would have 0...n tags assigned to
<br>it. Flushing keys could be done by asking memcached to flush all keys with a certain tag.<br><br>The usage scenario: lets say we have a DVD. We have a number of keys related to this dvd, maybe recommendations, comments, categorization
<br>etc. I could tag each of these keys with the id of the DVD (dvd:1234). Then I would tell memcached to flush all keys with the tag dvd:1234,<br>causing the database to recalculate all data relating to dvd 1234 on the next access.
<br><br>Zend implemented similar functionality in their new framework:<br><a href="http://framework.zend.com/manual/en/zend.cache.theory.html#zend.cache.tags">http://framework.zend.com/manual/en/zend.cache.theory.html#zend.cache.tags
</a><br><br>The wildcard deletes could be done this way, more efficiently than looping through the whole cache to see if a regex matches. Multidimensional arrays could be partially simulated by using tags.<br><br>I hope someone is interested ;-)
<br><br>Cheers<br><br>Jan<br><br><br><br><br><br>--<br>Geschäftsführer / Managing Director<br>Hitflip Media Trading GmbH<br>Gürzenichstr. 7, 50667 Köln<br><a href="http://www.hitflip.de">www.hitflip.de</a> - new: <a href="http://www.hitflip.co.uk">
www.hitflip.co.uk</a><br><br>Tel. +49-(0)221-272407-27<br>Fax. 0221-272407-22 (that's so 1990s)<br>HRB 59046, Amtsgericht Köln<br><br>Geschäftsführer: Andre Alpar, Jan Miczaika, Gerald Schönbucher<br><br></blockquote>
</div><br><br clear="all"><br>-- <br>"Be excellent to each other"