- 浏览: 358918 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
liulehua_123:
...
使用netty+spring搭建游戏框架 -
heng123:
netty等视频java.5d6b.com教程
使用netty+spring搭建游戏框架 -
di1984HIT:
、
redis 主从同步配置方案 -
di1984HIT:
学习了~~
使用netty+spring搭建游戏框架 -
di1984HIT:
不错,学习了~~
征服flume之三——使用log4j输出日志到flume
https://raw.github.com/twitter/twemproxy/master/notes/redis.md
Keys Command
Command Supported Format
DEL Yes DEL key key …
DUMP Yes DUMP key
EXISTS Yes EXISTS key
EXPIRE Yes EXPIRE key seconds
EXPIREAT Yes EXPIREAT key timestamp
KEYS No KEYS pattern
MIGRATE No MIGRATE host port key destinationdb timeout
MOVE No MOVE key db
OBJECT No OBJECT subcommand arguments arguments …
PERSIST Yes PERSIST key
PEXPIRE Yes PEXPIRE key milliseconds
PEXPIREAT Yes PEXPIREAT key millisecondstimestamp
PTTL Yes PTTL key
RANDOMKEY No RANDOMKEY
RENAME No RENAME key newkey
RENAMENX No RENAMENX key newkey
RESTORE Yes RESTORE key ttlserializedvalue
SORT No SORT key BY pattern LIMIT offset count GET pattern GET pattern ASC
TTL Yes TTL key
TYPE Yes TYPE key
Strings Command
Command Supported Format
APPEND Yes APPEND key value
BITCOUNT Yes BITCOUNT key start end
BITOP No BITOP operation destkey key key
DECR Yes DECR key
DECRBY Yes DECRBY key decrement
GET Yes GET key
GETBIT Yes GETBIT key offset
GETRANGE Yes GETRANGE key start end
GETSET Yes GETSET key value
INCR Yes INCR key
INCRBY Yes INCRBY key increment
INCRBYFLOAT Yes INCRBYFLOAT key increment
MGET Yes MGET key key
MSET No MSET key value key value
MSETNX No MSETNX key value key value
PSETEX Yes PSETEX key milliseconds value
SET Yes SET key value EX seconds PX milliseconds NX
SETBIT Yes SETBIT key offset value
SETEX Yes SETEX key seconds value
SETNX Yes SETNX key value
SETRANGE Yes SETRANGE key offset value
STRLEN Yes STRLEN key
Hashes
Command Supported Format
HDEL Yes HDEL key field field
HEXISTS Yes HEXISTS key field
HGET Yes HGET key field
HGETALL Yes HGETALL key
HINCRBY Yes HINCRBY key field increment
HINCRBYFLOAT Yes HINCRBYFLOAT key field increment
HKEYS Yes HKEYS key
HLEN Yes HLEN key
HMGET Yes HMGET key field field
HMSET Yes HMSET key field value field value
HSET Yes HSET key field value
HSETNX Yes HSETNX key field value
HVALS Yes HVALS key
Lists
Command Supported Format
BLPOP No BLPOP key key timeout
BRPOP No BRPOP key key timeout
BRPOPLPUSH No BRPOPLPUSH source destination timeout
LINDEX Yes LINDEX key index
LINSERT Yes LINSERT key BEFORE
LLEN Yes LLEN key
LPOP Yes LPOP key
LPUSH Yes LPUSH key value value
LPUSHX Yes LPUSHX key value
LRANGE Yes LRANGE key start stop
LREM Yes LREM key count value
LSET Yes LSET key index value
LTRIM Yes LTRIM key start stop
RPOP Yes RPOP key
RPOPLPUSH Yes RPOPLPUSH source destination
RPUSH Yes RPUSH key value value
RPUSHX Yes RPUSHX key value
Sets
Command Supported Format
SADD Yes SADD key member member
SCARD Yes SCARD key
SDIFF Yes SDIFF key key
SDIFFSTORE Yes SDIFFSTORE destination key key
SINTER Yes SINTER key key
SINTERSTORE Yes SINTERSTORE destination key key
SISMEMBER Yes SISMEMBER key member
SMEMBERS Yes SMEMBERS key
SMOVE Yes SMOVE source destination member
SPOP Yes SPOP key
SRANDMEMBER Yes SRANDMEMBER key count
SREM Yes SREM key member member
SUNION Yes SUNION key key
SUNIONSTORE Yes SUNIONSTORE destination key key
Sorted Sets
Command Supported Format
ZADD Yes ZADD key score member score member
ZCARD Yes ZCARD key
ZCOUNT Yes ZCOUNT key min max
ZINCRBY Yes ZINCRBY key increment member
ZINTERSTORE Yes ZINTERSTORE destination numkeys key key WEIGHTS weight weight AGGREGATE SUM
ZRANGE Yes ZRANGE key start stop WITHSCORES
ZRANGEBYSCORE Yes ZRANGEBYSCORE key min max WITHSCORES LIMIT offset count
ZRANK Yes ZRANK key member
ZREM Yes ZREM key member member
ZREMRANGEBYRANK Yes ZREMRANGEBYRANK key start stop
ZREMRANGEBYSCORE Yes ZREMRANGEBYSCORE key min max
ZREVRANGE Yes ZREVRANGE key start stop WITHSCORES
ZREVRANGEBYSCORE Yes ZREVRANGEBYSCORE key max min WITHSCORES LIMIT offset count
ZREVRANK Yes ZREVRANK key member
ZSCORE Yes ZSCORE key member
ZUNIONSTORE Yes ZUNIONSTORE destination numkeys key key WEIGHTS weight weight AGGREGATE SUM
PubSub
Command Supported Format
PSUBSCRIBE No PSUBSCRIBE pattern pattern
PUBLISH No PUBLISH channel message
PUNSUBSCRIBE No PUNSUBSCRIBE pattern pattern
SUBSCRIBE No SUBSCRIBE channel channel
UNSUBSCRIBE No UNSUBSCRIBE channel channel
Transactions
Command Supported Format
DISCARD No DISCARD
EXEC No EXEC
MULTI No MULTI
UNWATCH No UNWATCH
WATCH No WATCH key key
Scripting
Command Supported Format
EVAL Yes EVAL script numkeys key keyargarg
EVALSHA Yes EVALSHA shanumkeys key keyargarg
SCRIPT EXISTS No SCRIPT EXISTS script script
SCRIPT FLUSH No SCRIPT FLUSH
SCRIPT KILL No SCRIPT KILL
SCRIPT LOAD No SCRIPT LOAD script
Connection
Command Supported Format
AUTH No AUTH password
ECHO No ECHO message
PING No PING
QUIT No QUIT
SELECT No SELECT index
Server
Command Supported Format
BGREWRITEAOF No BGREWRITEAOF
BGSAVE No BGSAVE
CLIENT KILL No CLIENT KILL ipport
CLIENT LIST No CLIENT LIST
CONFIG GET No CONFIG GET parameter
CONFIG SET No CONFIG SET parameter value
CONFIG RESETSTAT No CONFIG RESETSTAT
DBSIZE No DBSIZE
DEBUG OBJECT No DEBUG OBJECT key
DEBUG SEGFAULT No DEBUG SEGFAULT
FLUSHALL No FLUSHALL
FLUSHDB No FLUSHDB
INFO No INFO
LASTSAVE No LASTSAVE
MONITOR No MONITOR
SAVE No SAVE
SHUTDOWN No SHUTDOWN NOSAVE SAVE
SLAVEOF No SLAVEOF host port
SLOWLOG No SLOWLOG subcommand argument
SYNC No SYNC
TIME No TIME
Keys Command
Command Supported Format
DEL Yes DEL key key …
DUMP Yes DUMP key
EXISTS Yes EXISTS key
EXPIRE Yes EXPIRE key seconds
EXPIREAT Yes EXPIREAT key timestamp
KEYS No KEYS pattern
MIGRATE No MIGRATE host port key destinationdb timeout
MOVE No MOVE key db
OBJECT No OBJECT subcommand arguments arguments …
PERSIST Yes PERSIST key
PEXPIRE Yes PEXPIRE key milliseconds
PEXPIREAT Yes PEXPIREAT key millisecondstimestamp
PTTL Yes PTTL key
RANDOMKEY No RANDOMKEY
RENAME No RENAME key newkey
RENAMENX No RENAMENX key newkey
RESTORE Yes RESTORE key ttlserializedvalue
SORT No SORT key BY pattern LIMIT offset count GET pattern GET pattern ASC
TTL Yes TTL key
TYPE Yes TYPE key
Strings Command
Command Supported Format
APPEND Yes APPEND key value
BITCOUNT Yes BITCOUNT key start end
BITOP No BITOP operation destkey key key
DECR Yes DECR key
DECRBY Yes DECRBY key decrement
GET Yes GET key
GETBIT Yes GETBIT key offset
GETRANGE Yes GETRANGE key start end
GETSET Yes GETSET key value
INCR Yes INCR key
INCRBY Yes INCRBY key increment
INCRBYFLOAT Yes INCRBYFLOAT key increment
MGET Yes MGET key key
MSET No MSET key value key value
MSETNX No MSETNX key value key value
PSETEX Yes PSETEX key milliseconds value
SET Yes SET key value EX seconds PX milliseconds NX
SETBIT Yes SETBIT key offset value
SETEX Yes SETEX key seconds value
SETNX Yes SETNX key value
SETRANGE Yes SETRANGE key offset value
STRLEN Yes STRLEN key
Hashes
Command Supported Format
HDEL Yes HDEL key field field
HEXISTS Yes HEXISTS key field
HGET Yes HGET key field
HGETALL Yes HGETALL key
HINCRBY Yes HINCRBY key field increment
HINCRBYFLOAT Yes HINCRBYFLOAT key field increment
HKEYS Yes HKEYS key
HLEN Yes HLEN key
HMGET Yes HMGET key field field
HMSET Yes HMSET key field value field value
HSET Yes HSET key field value
HSETNX Yes HSETNX key field value
HVALS Yes HVALS key
Lists
Command Supported Format
BLPOP No BLPOP key key timeout
BRPOP No BRPOP key key timeout
BRPOPLPUSH No BRPOPLPUSH source destination timeout
LINDEX Yes LINDEX key index
LINSERT Yes LINSERT key BEFORE
LLEN Yes LLEN key
LPOP Yes LPOP key
LPUSH Yes LPUSH key value value
LPUSHX Yes LPUSHX key value
LRANGE Yes LRANGE key start stop
LREM Yes LREM key count value
LSET Yes LSET key index value
LTRIM Yes LTRIM key start stop
RPOP Yes RPOP key
RPOPLPUSH Yes RPOPLPUSH source destination
RPUSH Yes RPUSH key value value
RPUSHX Yes RPUSHX key value
Sets
Command Supported Format
SADD Yes SADD key member member
SCARD Yes SCARD key
SDIFF Yes SDIFF key key
SDIFFSTORE Yes SDIFFSTORE destination key key
SINTER Yes SINTER key key
SINTERSTORE Yes SINTERSTORE destination key key
SISMEMBER Yes SISMEMBER key member
SMEMBERS Yes SMEMBERS key
SMOVE Yes SMOVE source destination member
SPOP Yes SPOP key
SRANDMEMBER Yes SRANDMEMBER key count
SREM Yes SREM key member member
SUNION Yes SUNION key key
SUNIONSTORE Yes SUNIONSTORE destination key key
Sorted Sets
Command Supported Format
ZADD Yes ZADD key score member score member
ZCARD Yes ZCARD key
ZCOUNT Yes ZCOUNT key min max
ZINCRBY Yes ZINCRBY key increment member
ZINTERSTORE Yes ZINTERSTORE destination numkeys key key WEIGHTS weight weight AGGREGATE SUM
ZRANGE Yes ZRANGE key start stop WITHSCORES
ZRANGEBYSCORE Yes ZRANGEBYSCORE key min max WITHSCORES LIMIT offset count
ZRANK Yes ZRANK key member
ZREM Yes ZREM key member member
ZREMRANGEBYRANK Yes ZREMRANGEBYRANK key start stop
ZREMRANGEBYSCORE Yes ZREMRANGEBYSCORE key min max
ZREVRANGE Yes ZREVRANGE key start stop WITHSCORES
ZREVRANGEBYSCORE Yes ZREVRANGEBYSCORE key max min WITHSCORES LIMIT offset count
ZREVRANK Yes ZREVRANK key member
ZSCORE Yes ZSCORE key member
ZUNIONSTORE Yes ZUNIONSTORE destination numkeys key key WEIGHTS weight weight AGGREGATE SUM
PubSub
Command Supported Format
PSUBSCRIBE No PSUBSCRIBE pattern pattern
PUBLISH No PUBLISH channel message
PUNSUBSCRIBE No PUNSUBSCRIBE pattern pattern
SUBSCRIBE No SUBSCRIBE channel channel
UNSUBSCRIBE No UNSUBSCRIBE channel channel
Transactions
Command Supported Format
DISCARD No DISCARD
EXEC No EXEC
MULTI No MULTI
UNWATCH No UNWATCH
WATCH No WATCH key key
Scripting
Command Supported Format
EVAL Yes EVAL script numkeys key keyargarg
EVALSHA Yes EVALSHA shanumkeys key keyargarg
SCRIPT EXISTS No SCRIPT EXISTS script script
SCRIPT FLUSH No SCRIPT FLUSH
SCRIPT KILL No SCRIPT KILL
SCRIPT LOAD No SCRIPT LOAD script
Connection
Command Supported Format
AUTH No AUTH password
ECHO No ECHO message
PING No PING
QUIT No QUIT
SELECT No SELECT index
Server
Command Supported Format
BGREWRITEAOF No BGREWRITEAOF
BGSAVE No BGSAVE
CLIENT KILL No CLIENT KILL ipport
CLIENT LIST No CLIENT LIST
CONFIG GET No CONFIG GET parameter
CONFIG SET No CONFIG SET parameter value
CONFIG RESETSTAT No CONFIG RESETSTAT
DBSIZE No DBSIZE
DEBUG OBJECT No DEBUG OBJECT key
DEBUG SEGFAULT No DEBUG SEGFAULT
FLUSHALL No FLUSHALL
FLUSHDB No FLUSHDB
INFO No INFO
LASTSAVE No LASTSAVE
MONITOR No MONITOR
SAVE No SAVE
SHUTDOWN No SHUTDOWN NOSAVE SAVE
SLAVEOF No SLAVEOF host port
SLOWLOG No SLOWLOG subcommand argument
SYNC No SYNC
TIME No TIME
发表评论
-
MySQL Workbench 使用说明
2018-05-21 13:08 4831一、 MySQL Workbench简介 M ... -
java面试整理五——MYSQL、REDIS
2018-02-25 16:05 01. MySQL InnoDB、Mysaim的特 ... -
redhat下mysql安装与使用
2015-10-23 16:49 9411、安装 (1)查看是否安装 yum list ... -
twemproxy配置详解
2014-07-10 13:40 4802twemproxy的配置信息填写 ... -
基于twemproxy的redis分布式应用
2014-07-10 12:04 2780根据以往的测试结论,单个redis的实例的内存总量最好控制在8 ... -
redis 主从同步配置方案
2012-12-18 16:04 3560今天研究了redis主从同步部分的配置,在这里留个备忘! 闲 ... -
mysql 1418 无法创建函数的解决方法
2012-11-16 14:32 1303ErrorCode:1418 Thisfunctionhasn ... -
一个适用于CentOS下的Redis启动脚本
2012-11-07 10:20 1299#!/bin/sh # # redis - this ... -
redis 配置方案
2012-11-07 10:16 1019cd /usr/local/src wget http:// ... -
Redis数据备份与恢复
2012-11-07 10:15 1542Redis提供了两种持久化选项,分别是RDB和AOF。 默认 ... -
对redis数据持久化的一些想法[转]
2012-08-27 11:14 1460数据持久化通俗讲就是 ... -
用户留存率计算
2012-07-16 12:29 10240做企业级报表的人经常会遇到留存率的概念。对于不同的项目 ... -
linux下的membase数据库安装
2012-07-13 15:37 2088本文主要介绍的是linux系统下membase数据库的安装与使 ... -
linux下的membase数据库安装
2012-07-13 10:33 0[img]http://dl.iteye.com/upload ... -
linux下的membase数据库安装
2012-07-13 10:30 2[img]http://dl.iteye.com/upload ... -
linux下memcached的安装与使用
2012-07-13 09:57 1219memcached使用了libevent,所以必须先安装lib ... -
c3p0、dbcp、proxool、BoneCP比较
2012-07-13 09:55 11341.1 测试环境: 操作系统 ...
相关推荐
5. **启动 Twemproxy**:使用 `nutcracker` 命令启动代理服务,指定配置文件路径,还可以启用日志记录。 6. **Laravel 配置**:最后,在 Laravel 项目中,将 `.env` 文件中的 `REDIS_HOST` 和 `REDIS_PORT` 设置为 ...
其他功能GUI 网站仪表板和管理工具支持大部分Redis命令,完全兼容Twemproxy( https://github.com/twitter/twemproxy )代理可以在 zk/etcd 上注册,客户端可以避免死代理,请参阅“高可用性”部分。教程
Twemproxy支持TCP和UDP协议,具有低延迟、高性能的特点,且配置简单,适合快速部署。它并不处理数据,而是直接转发请求,因此对于复杂的业务逻辑,需要在客户端进行处理。 在安装Redis时,通常需要下载源码,编译并...
架构:特性:自动平衡使用非常简单图形化的面板和管理工具支持绝大多数 Redis 命令,完全兼容 twemproxy支持 Redis 原生客户端安全而且透明的数据移植,可根据需要轻松添加和删除节点提供命令行接口RESTful APIs安装...
- **命令支持**:支持大部分Redis和Memcached命令,但不支持所有命令,如Lua脚本等复杂操作。 - **故障检测**:监控后端服务器状态,自动隔离故障节点。 - **性能优化**:通过批量处理、命令合并等技术,提高网络...
通过这个工具,你可以执行各种Redis命令,如`SET`、`GET`、`LPUSH`等,进行数据的读写操作。 7. **数据持久化**: Redis支持两种数据持久化方式:RDB(快照)和AOF(Append Only File)。RDB会在指定时间间隔或...
GUI 仪表板和管理工具支持大部分Redis命令,完全兼容twemproxy( https://github.com/twitter/twemproxy )支持本机 Redis 客户端安全透明的数据迁移,轻松按需添加或删除节点。还提供命令行界面RESTful API监控和故障...
6. **使用Redis命令**:现在你可以使用Redis命令进行数据操作,如`SET key value`用来设置键值对,`GET key`用来获取键对应的值,`DEL key`用来删除键,`KEYS *`用来查找所有键等。 7. **管理与监控**:Redis在...
事务功能是Redis支持的,它能够保证一次性执行多个命令时的原子性。通过LUA脚本,Redis能在服务器端执行更为复杂的逻辑操作。此外,Redis支持数据持久化,即把内存数据写入硬盘,以防系统重启时数据丢失。最后,...
此外,文档还提到了Sharding架构,包括Redis 3.0 Cluster和Twemproxy,它们通过数据分片提供了扩展性和高可用性。 开发运维指南不仅需要涵盖基本操作和理论,还应当指导开发人员和运维人员在遇到问题时进行故障排查...
twemproxy是一种代理方式,通过一致性哈希算法分发请求到多个Redis实例,并支持自动节点故障转移。codis是另一个流行的集群方案,它解决了twemproxy中的数据自动迁移问题。Redis自带的集群方案基于hash槽,并支持从...
- **CodisRedis**:Codis项目维护的一个特殊版本的Redis,支持slot和数据迁移命令。 - **Codisconfig**:提供了管理工具及图形化界面,支持添加/删除节点、数据迁移等操作。 - **ZooKeeper**:分布式应用程序协调...
- **事务(Transactions)**:Redis支持事务,可以一次性按顺序执行多个命令,保证原子性,但不支持回滚。 - **LUA脚本**:通过LUA脚本可以在服务器端执行复杂的逻辑,以原子方式执行一系列操作。 - **持久化**:...
对于 Redis 集群方案,常见的有 Codis、使用第三方代理如 Twemproxy 或 Redis 自带的 Redis Cluster。Redis 集群中,如果某个节点故障,可能导致部分数据无法访问,从而影响整个集群的可用性。例如,如果 A、B、C 三...
1. Twemproxy:作为一个代理,它将请求转发到合适的Redis实例,采用一致性哈希算法,但不支持动态调整节点。 2. Codis:类似Twemproxy,但支持在节点变化时迁移数据,提供更好的容错能力。 3. Redis Cluster:官方的...
5. **多线程和线程安全**:Twemproxy支持多线程模型,可以利用多核CPU,提高并发处理能力。它的线程安全特性确保了在高并发环境下数据的一致性和完整性。 6. **缓存协议支持**:Twemproxy实现了Redis和Memcached的...
标题中的“cpp-改造twemproxy使其支持ssdb协议ssdb的分片和ssdb的读写分离”意味着我们需要深入理解三个主要概念:C++编程、twemproxy(也称为nutcracker)以及SSDB数据库。 1. **C++编程**: C++是一种静态类型、...