首页 > 架构 > memcache的几个旁支

memcache的几个旁支

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

memcached-tag

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

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

Memcached is a high-performance, distributed memory object cachingsystem.

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

memcached forWin32

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

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

memcachedb

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

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

  • 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 andreliable key-value based object storage and retrieval. It conforms to memcacheprotocol(not completed, see below), so any memcached client can haveconnectivity with it. Memcachedb uses Berkeley DB as a storing backend, so lotsof features including transaction and replication aresupported.

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 atable in MySQL.

转自: http://www.ooso.net/archives/395

分类: 架构 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.

=1加5(必填)请输入两数相加的结果。