What's new? | Help | Directory | Sign in
Google
memcached-tag
add tag function for memcached
  
  
  
    
Search
for
Updated Feb 04, 2008 by youku2008
Labels: Featured
MemcacheTagIntroduction  

Memcache-Tag Introduction

  • Tag function can delete a number of keys at one time. In design, we considerate it's need to find and delete tag efficient, so use HASH store tags, the time complexity of O(1). Initially, we use linked list store the corresponding keys sequence of one tag, when take into account save memory and avoid duplication of keys, then use the binary tree "splaytree" storage the key sequence. Splaytree not only can remove duplicate keys, but also rotate the visited node near the root to make for more efficient, its time complexity is no more than O(logn).
  • How to Use? You just need start the memcached program on the server-side (also can run on several servers with different port). On the client-side, you need to install php extension module with user "root".
  • We modified code based on the memcached 1.2.4 and php module 2.2.2. Both "diff" files and source code can be downloaded here.


Sign in to add a comment