memcache的几个旁支

本文介绍了Memcache的几个旁支项目,包括增加tag功能的memcached-tag、适用于Win32系统的memcached for Win32、提供持久化存储的memcachedb以及作为MySQL存储引擎的memcache_engine。

 原贴: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.

<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascr<script src="http://pagead2.googlesyndication.com/pagead/expansion_embed.js"></script>ad/expansion_embed.js">

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

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

Tags: memcache,PHP

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值