05-06

不得不说,memcache_engine是个很好的东西,根据他官网上的介绍:“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.”。

说memcache_engine可以让Memcache作为MySQL数据库的一个存储引擎和MySQL集成起来,然后直接使用标准的SQL进行CRUD操作了,太强大了。在写Discuz!的Memcache缓存实现(地址:http://www.ccvita.com/261.html)的时候,虽然PHP可以很容易的操作Memcache,但是仍然没有memcache_engine来的方便和强大。

貌似其官网上也在说memcache_engine目前还是试验性质的。

根据robbin给出的一些示例如下:
CREATE TABLE `a` (
`a` int(11) NOT NULL DEFAULT ‘0′,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL,
PRIMARY KEY (`a`)
) ENGINE=MEMCACHE DEFAULT CHARSET=latin1
CONNECTION=’localhost:6666\;localhost:6688′;

啥也不说了,期待正式版本吧。


Tags: ,

评论(5 条评论)

  1. kimi - 2008-05-06 11:06

    看文章中robbin的那篇文章后面的回复还是值得一看的

  2. hzxxx - 2008-05-06 22:06

    发现你的blog有很好很好的内容,订阅了,博主认真写哦

  3. hzxxx - 2008-05-06 22:07

    错了,是很多很好的内容。

  4. rube - 2008-05-07 11:20

    很好,很大,很强大。

  5. xinzf - 2008-05-19 23:18

    很好很强大

发表评论

*必填

*必填

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image