My favorites | Sign in
Project Home Downloads Wiki Issues
Project Information
Members
Featured
Downloads
Wiki pages
Links

What is memcached-tag?

Memcached is a high-performance, distributed memory object caching system.

We add "Tag Function" for memcached. Propose is remove several keys with the same tag in one operation. This function will help the API programmers (such as php) do the delete operation easily, and reduce the network load. We use hash and splay tree, make the "tag_add" and "tag_delete" commands very quickly, and save memory as much as possible.

There is a brief introduction about what we thought and how we considerate. You can see it here

The patch and full source code can be downloaded on the right, you can also see the change log here. And we will update it in the future.

You can also visit here by http://memcached-tag.googlecode.com and left your message here.If you find BUGS, please tell us, thanks very much!

New memcached command

  • tag_add
    <tag>
    <key>
  • tag_delete
    <tag>

Features

  • One tag can contain one or more keys.
  • One key can belong to one or more tags.
  • Delete one tag will delete all the keys with the tag.
  • Item - key remain consistency.
  • Use splay tree, remove duplicate key, save memory.
  • Support distributed server.
  • Automatic removes empty tag.
  • Tag function is "thread safe".

How to use?

You can see it on the wiki paper here.

Example

You can see some examples here.
Powered by Google Project Hosting