MySQL Forums
Forum List  »  memcached

Queues and key dependencies in memcached
Posted by: Marc Worrell
Date: November 19, 2007 05:21AM

At Mediamatic we use an adapted version of memcached. Our version supports dependency keys, hierarchies and simple queues.

The dependency keys enable flushing keys whenever another key gets flushed or updated. An example is two cache entries. One is the html representation of an object, and another is the object itself. Whenever the object is updated, the memcached entry is also updated, and because of that the html representation is automatically deleted.

The hierarchies support is a kind of directory tree. It enables deleting keys "by directory".

The queues are simple fixed sized queues with queue and dequeue operations.

You can find the code at http://www.marcworrell.com/article-2287-en.html

Besides the functional changes we also added a garbage collector and usage of normal malloc() and free(). In practice this gives our depcached a lower memory footprint than the equivalent memcached.

Hope someone finds this useful.

Regards,

Marc Worrell
Mediamatic Lab

Options: ReplyQuote


Subject
Views
Written By
Posted
Queues and key dependencies in memcached
7232
November 19, 2007 05:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.