Tag Function

André Cruz andre.cruz at co.sapo.pt
Thu Apr 3 10:23:46 UTC 2008


On Mon, 2008-02-25 at 16:03 +0800, Du Song wrote:
>  What about tweak the code a bit to match the community proposal[1]
> about tag function last year? for Liu's code, that is
> 
> 1. changing from
>    tag_add tag key1 key2 ...
> to
>    add_tag key tag1 tag2 ...
> which may be more common in daily usage,
> 
> 2. renaming from
>    tag_delete
> to
>    invalidate_tag
> which prevents misunderstanding.
> 
> I wonder if changes above will help adding this as an experimental
> feature in the future release since (i guess) lots of ppl (incl. me)
> demand this tag thing so much. :P

I also propose a new function to alter the expiration time of all the
keys with a given tag:

freshen_tag new_expiration tag1 tag2 ...

This would be useful in situations when we have multiple data about the
same "thing" and we want to keep the expiration time consistent.

Best regards,
André Cruz



More information about the memcached mailing list