KCS与redis命令兼容列表返回上一级

 KCS兼容Redis协议,您在创建KCS服务之后,可以通过Redis命令行工具或Redis开发包来访问缓存。目前KCS支持的Redis命令如下表:

注:绿色为支持,红色为未支持

Key(键) String(字符串) Hash(哈希表) List(列表) Set(集合) SortedSet(有序集合) HyperLogLog GEO(地理位置) Pub/Sub(发布/订阅) Transaction(事务) Script(脚本) Connection(连接) Server(服务器)
DEL APPEND HDEL BLPOP SADD ZADD PFADD GEOADD PSUBSCRIBE DISCARD EVAL AUTH BGREWRITEAOF
DUMP BITCOUNT HEXISTS BRPOP SCARD ZCARD PFCOUNT GEOPOS PUBLISH EXEC EVALSHA ECHO BGSAVE
EXISTS BITOP HGET BRPOPLPUSH SDIFF ZCOUNT PFMERGE GEODIST PUBSUB MULTI SCRIPT EXISTS PING CLIENT GETNAME
EXPIRE DECR HGETALL LINDEX SDIFFSTORE ZINCRBY   GEORADIUS PUNSUBSCRIBE UNWATCH SCRIPT FLUSH QUIT CLIENT KILL
EXPIREAT DECRBY HINCRBY LINSERT SINTER ZRANGE   GEORADIUSBYMEMBER SUBSCRIBE WATCH SCRIPT KILL SELECT CLIENT LIST
KEYS GET HINCRBYFLOAT LLEN SINTERSTORE ZRANGEBYSCORE   GEOHASH UNSUBSCRIBE   SCRIPT LOAD   CLIENT SETNAME
MIGRATE GETBIT HKEYS LPOP SISMEMBER ZRANK             CONFIG GET
MOVE GETRANGE HLEN LPUSH SMEMBERS ZREM             CONFIG RESETSTAT
OBJECT GETSET HMGET LPUSHX SMOVE ZREMRANGEBYRANK             CONFIG REWRITE
PERSIST INCR HMSET LRANGE SPOP ZREMRANGEBYSCORE             CONFIG SET
PEXPIRE INCRBY HSET LREM SRANDMEMBER ZREVRANGE             DBSIZE
PEXPIREAT INCRBYFLOAT HSETNX LSET SREM ZREVRANGEBYSCORE             DEBUG OBJECT
PTTL MGET HVALS LTRIM SUNION ZREVRANK             DEBUG SEGFAULT
RANDOMKEY MSET HSCAN RPOP SUNIONSTORE ZSCORE             FLUSHALL
RENAME MSETNX   RPOPLPUSH SSCAN ZUNIONSTORE             FLUSHDB
RENAMENX PSETEX   RPUSH   ZINTERSTORE             INFO
RESTORE SET   RPUSHX   ZSCAN             LASTSAVE
SORT SETBIT       ZRANGEBYLEX             MONITOR
TTL SETEX       ZLEXCOUNT             PSYNC
TYPE SETNX       ZREMRANGEBYLEX             SAVE
SCAN SETRANGE                     SHUTDOWN
  STRLEN                     SLAVEOF
                        SLOWLOG
                        SYNC
                        TIME



客服热线:400-028-9900