辛夷坞

木末芙蓉花,山中发红萼,涧户寂无人,纷纷开且落

By - 陳 瞽鱦

Redis 3.0.0 正式版发布

Redis 是一个高性能的 key-value 数据库。Redis的出现,很大程度补偿了 memcached(v1.4.22 2014-12-31) 这类 key-value 存储的不足,在部分场合可以对关系数据库起到很好的补充作用。它提供了Python,Ruby,Erlang,PHP客户端,使用很方便。
性能测试结果:
SET操作每秒钟 110000 次,GET操作每秒钟 81000 次,服务器配置:Linux 2.6, Xeon X3320 2.5Ghz.
Stack Overflow 网站使用 Redis 做为缓存服务器。

Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.
The full list of commands: http://redis.io/commands
目前我们还处于 memcached 的级别,但是 memcached 老了。
Jedis 是 Redis 官方首选的 Java 客户端开发包。

Jedis jedis = new Jedis("localhost");
jedis.set("foo", "bar");
String value = jedis.get("foo");

Leave a Reply

Your email address will not be published.
*
*