install redis https://github.com/MSOpenTech/redis/releaseshtml
--啓動redis服務node
redis-server.exe redis.windows.confgit
config setgithub
client connectredis
redis-cli -c -p 7000windows
set key valueruby
get valueapp
hgetall key.net
lrange key start endcode
Cluster
install ruby http://rubyinstaller.org/downloads/
install rubygems https://rubygems.org/pages/download
gem install redis
port 7000 cluster-enabled yes cluster-config-file nodes.conf cluster-node-timeout 5000 appendonly yes
mkdir cluster-test cd cluster-test mkdir 7000 7001 7002 7003 7004 7005
cd 7000 ../redis-server ./redis.conf
建立集羣
./redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
檢查集羣情況
redis-trib.rb check 1 10.10.34.14:6380
add master node
redis-trib.rb add-node 10.10.34.14:6386 10.10.34.14:6381
Slave 節點
delete cluster node
http://www.cnblogs.com/yanghua1012/p/5679183.html
http://www.cnblogs.com/tankaixiong/articles/4022646.html
http://www.cnblogs.com/yjmyzz/p/redis-cluster-turotial.html
redis 數據類型 http://blog.csdn.net/gaogaoshan/article/details/41039581/