当前位置:首页 > 开发 > 数据库 > 正文

twemproxy支持的redis命令

发表于: 2014-07-10   作者:cpjsjxy   来源:转载   浏览:
摘要: https://raw.github.com/twitter/twemproxy/master/notes/redis.md Keys Command       Command      Supported Format      
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                                                                                                               


twemproxy支持的redis命令

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号