摘要: Redis 是一个高性能的key-value数据库。 redis的出现,很大程度补偿了memcached这类keyvalue存储的不足,在部分场合可以对关系数据库起到很好的补充作用。它提供了Python,Ruby,Erlang,PHP客户端,使用很方便。以下是安装测试步骤:1,redis安装:[root@localhost ~]# cd /usr/local/src/[root@localhost src]# wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz[root@localhost src]# tar zxf redis 阅读全文
posted @ 2013-11-05 14:59 deepstone 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 先引用redis官方(http://redis.io/)的介绍:Redis is an open source, advanced key-value store.It is often referred to asa data structure server since keys can contain strings, hashes, lists, sets andsorted sets.系统信息:[root@localhost redis]# lsb_release -aLSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-i 阅读全文
posted @ 2013-11-05 14:31 deepstone 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 连接操作相关的命令quit:关闭连接(connection)auth:简单密码认证持久化save:将数据同步保存到磁盘bgsave:将数据异步保存到磁盘lastsave:返回上次成功将数据保存到磁盘的Unix时戳shundown:将数据同步保存到磁盘,然后关闭服务远程服务控制info:提供服务器的信息和统计monitor:实时转储收到的请求slaveof:改变复制策略设置config:在运行时配置Redis服务器对value操作的命令exists(key):确认一个key是否存在del(key):删除一个keytype(key):返回值的类型keys(pattern):返回满足给定patter 阅读全文
posted @ 2013-11-05 13:50 deepstone 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Redis 是一个高性能的key-value数据库。 redis的出现,很大程度补偿了memcached这类keyvalue存储的不足,在部分场合可以对关系数据库起到很好的补充作用。它提供了Python,Ruby,Erlang,PHP客户端,使用很方便。以下是安装测试步骤:1,redis安装:[root@localhost ~]# cd /usr/local/src/[root@localhost src]# wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz[root@localhost src]# tar zxf redis 阅读全文
posted @ 2013-11-05 09:07 deepstone 阅读(668) 评论(0) 推荐(0) 编辑