memcache的几个旁支

 原贴:http://www.ooso.net/archives/395

memcache的几个旁支

最近留意了一下,memcache出现了几个旁支项目,很有一点意思,也许在日后的项目中可以用的上。

memcached-tag

给memcache增加了tag功能,新增的命令如下:

  • tag_add <tag> <key>
  • tag_delete <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.

memcached for Win32

顾名思义,这个是一个在win32下跑的memcached,某些人用的上吧,也许…

This is a port of memcached to the win32 architecture by Kronuz
The win32 version of memcached can be run both as a NT Service or from the command line.

memcachedb

新浪互动社区技术团队提供的一个memcache版本。我们知道memcache是将数据保存在内存里的,要是停机或重启,biu的一下,就什么都没了,虽然这能满足cache的需要,但是如果有一个key-value的持久化存储db,也是不错的。

memcachedb就是这样一个基于memcache + berkeley db的持久存储,仍然可以使用之前的memcache client api,比如这些方法:

  • get(also mutiple get)
  • set, add, replace
  • incr, decr
  • delete
  • stats

我测试了一下,还不支持flush奥,但是没有关系,问题不大。测试的时候,读写速度相当快。据memcachedb的主页上说,这个不是拿来作为一个cache的解决方案的,而是一个快速的key-value持久存储db。

Memcachedb is a distributed key-value storage system designed for persistent. It is NOT a cache solution, but a persistent storage engine for fast and reliable key-value based object storage and retrieval. It conforms to memcache protocol(not completed, see below), so any memcached client can have connectivity with it. Memcachedb uses Berkeley DB as a storing backend, so lots of features including transaction and replication are supported.

memcache_engine

memcache_engine是一个MySQL数据库的存储引擎,目前只支持MySQL5.1数据库,他能够把memcachedb作为MySQL数据库的一个存储引擎和MySQL集成起来,让用户通过标准的SQL查询语句访问memcachedb中存放的数据.

The memcache_engine allows memcache to work as a storage engine to MySQL. This means that you can SELECT/UPDATE/INSERTE/DELETE from it as though it is a table in MySQL.

作者: Volcano 发表于May 8, 2008 at 2:23 pm

版权信息: 可以任意转载, 转载时请务必以超链接形式标明文章原始出处和作者信息及此声明

永久链接 - http://www.ooso.net/archives/395

Tags: memcache,PHP

 

你可能感兴趣的:(memcache的几个旁支)