Comandos de Redis 5.0
DCS for Redis 5.0 está desarrollado basado en Redis 5.0.9 y es compatible con los protocolos y comandos de código abierto. Esta sección describe la compatibilidad de DCS for Redis 5.0 con los comandos de Redis, incluidos los comandos compatibles y deshabilitados.
Las instancias de DCS para Redis admiten la mayoría de los comandos de Redis. Cualquier cliente compatible con el protocolo de Redis puede acceder a DCS.
- Por motivos de seguridad, algunos comandos de Redis están deshabilitados en DCS, como se indica en Comandos deshabilitados por DCS for Redis 5.0.
- Algunos comandos de Redis son compatibles con instancias DCS de clúster para operaciones de varias claves en la misma ranura. Para más detalles, consulte Restricciones de comandos.
- Algunos comandos de Redis tienen restricciones de uso, que se describen en Otras restricciones del uso de comandos.
Comandos compatibles con DCS for Redis 5.0
- Tabla 1 y Tabla 2 los comandos list soportados por DCS for Redis 5.0.
- Tabla 3 y Tabla 4 lista de comandos soportados por las instancias de Clúster Proxy de DCS para Redis 5.0.
- Tabla 5 y Tabla 6 enumeran los comandos de Redis admitidos por la separación de lectura/escritura de instancias de DCS para Redis 5.0.
Para obtener más información sobre la sintaxis del comando, visite el sitio web oficial de Redis. Por ejemplo, para ver detalles sobre el comando SCAN, escriba SCAN en el cuadro de búsqueda de esta página.
- Los comandos disponibles desde las versiones posteriores de Redis no son compatibles con las instancias de versiones anteriores. Ejecute un comando en redis-cli para comprobar si es compatible con DCS for Redis. Si se devuelve el mensaje "(error) ERR unknown command", el comando no es compatible.
- Para las instancias de DCS para Redis 5.0 en el modo Clúster Redis, asegúrese de que todos los comandos de una canalización se ejecuten en la misma partición.
DEL |
APPEND |
HDEL |
BLPOP |
SADD |
ZADD |
FLUSHALL |
DUMP |
BITCOUNT |
HEXISTS |
BRPOP |
SCARD |
ZCARD |
FLUSHDB |
EXISTS |
BITOP |
HGET |
BRPOPLRUSH |
SDIFF |
ZCOUNT |
DBSIZE |
EXPIRE |
BITPOS |
HGETALL |
LINDEX |
SDIFFSTORE |
ZINCRBY |
TIME |
MOVE |
DECR |
HINCRBY |
LINSERT |
SINTER |
ZRANGE |
INFO |
PERSIST |
DECRBY |
HINCRBYFLOAT |
LLEN |
SINTERSTORE |
ZRANGEBYSCORE |
KEYS |
PTTL |
GET |
HKEYS |
LPOP |
SISMEMBER |
ZRANK |
CLIENT KILL |
RANDOMKEY |
GETRANGE |
HMGET |
LPUSHX |
SMEMBERS |
ZREMRANGEBYRANK |
CLIENT LIST |
RENAME |
GETSET |
HMSET |
LRANGE |
SMOVE |
ZREMRANGEBYCORE |
CLIENT GETNAME |
RENAMENX |
INCR |
HSET |
LREM |
SPOP |
ZREVRANGE |
CLIENT SETNAME |
RESTORE |
INCRBY |
HSETNX |
LSET |
SRANDMEMBER |
ZREVRANGEBYSCORE |
CONFIG GET |
SORT |
INCRBYFLOAT |
HVALS |
LTRIM |
SREM |
ZREVRANK |
MONITOR |
TTL |
MGET |
HSCAN |
RPOP |
SUNION |
ZSCORE |
SLOWLOG |
TYPE |
MSET |
HSTRLEN |
RPOPLPU |
SUNIONSTORE |
ZUNIONSTORE |
ROLE |
SCAN |
MSETNX |
HLEN |
RPOPLPUSH |
SSCAN |
ZINTERSTORE |
SWAPDB |
OBJECT |
PSETEX |
- |
RPUSH |
SPOP |
ZSCAN |
MEMORY |
PEXPIREAT |
SET |
- |
RPUSHX |
- |
ZRANGEBYLEX |
CONFIG |
PEXPIRE |
SETBIT |
- |
LPUSH |
- |
ZLEXCOUNT |
- |
- |
SETEX |
- |
- |
- |
ZPOPMIN |
- |
- |
SETNX |
- |
- |
- |
ZPOPMAX |
- |
- |
SETRANGE |
- |
- |
- |
ZREMRANGEBYSCORE |
- |
- |
STRLEN |
- |
- |
- |
ZREM |
- |
- |
BITFIELD |
- |
- |
- |
- |
- |
PFADD |
PSUBSCRIBE |
DISCARD |
AUTH |
EVAL |
GEOADD |
XACK |
PFCOUNT |
PUBLISH |
EXEC |
ECHO |
EVALSHA |
GEOHASH |
XADD |
PFMERGE |
PUBSUB |
MULTI |
PING |
SCRIPT EXISTS |
GEOPOS |
XCLAIM |
- |
PUNSUBSCRIBE |
UNWATCH |
QUIT |
SCRIPT FLUSH |
GEODIST |
XDEL |
- |
SUBSCRIBE |
WATCH |
SELECT |
SCRIPT KILL |
GEORADIUS |
XGROUP |
- |
UNSUBSCRIBE |
- |
- |
SCRIPT LOAD |
GEORADIUSBYMEMBER |
XINFO |
- |
- |
- |
- |
- |
- |
XLEN |
- |
- |
- |
- |
- |
- |
XPENDING |
- |
- |
- |
- |
- |
- |
XRANGE |
- |
- |
- |
- |
- |
- |
XREAD |
- |
- |
- |
- |
- |
- |
XREADGROUP |
- |
- |
- |
- |
- |
- |
XREVRANGE |
- |
- |
- |
- |
- |
- |
XTRIM |
DEL |
APPEND |
HDEL |
BLPOP |
SADD |
ZADD |
FLUSHALL |
DUMP |
BITCOUNT |
HEXISTS |
BRPOP |
SCARD |
ZCARD |
FLUSHDB |
EXISTS |
BITOP |
HGET |
BRPOPLRUSH |
SDIFF |
ZCOUNT |
DBSIZE |
EXPIRE |
BITPOS |
HGETALL |
LINDEX |
SDIFFSTORE |
ZINCRBY |
TIME |
MOVE |
DECR |
HINCRBY |
LINSERT |
SINTER |
ZRANGE |
INFO |
PERSIST |
DECRBY |
HINCRBYFLOAT |
LLEN |
SINTERSTORE |
ZRANGEBYSCORE |
ROLE |
PTTL |
GET |
HKEYS |
LPOP |
SISMEMBER |
ZRANK |
MEMORY |
RENAME |
GETRANGE |
HMGET |
LPUSHX |
SMEMBERS |
ZREMRANGEBYRANK |
COMMAND |
RENAMENX |
GETSET |
HMSET |
LRANGE |
SMOVE |
ZREMRANGEBYCORE |
COMMAND COUNT |
RESTORE |
INCR |
HSET |
LREM |
SPOP |
ZREVRANGE |
COMMAND GETKEYS |
SORT |
INCRBY |
HSETNX |
LSET |
SRANDMEMBER |
ZREVRANGEBYSCORE |
COMMAND INFO |
TTL |
INCRBYFLOAT |
HVALS |
LTRIM |
SREM |
ZREVRANK |
CONFIG GET |
TYPE |
MGET |
HSCAN |
RPOP |
SUNION |
ZSCORE |
CONFIG RESETSTAT |
SCAN |
MSET |
HSTRLEN |
RPOPLPUSH |
SUNIONSTORE |
ZUNIONSTORE |
CONFIG REWRITE |
OBJECT |
MSETNX |
HLEN |
RPUSH |
SSCAN |
ZINTERSTORE |
CONFIG SET |
PEXPIRE |
PSETEX |
HKEYS |
RPUSHX |
SPOP |
ZSCAN |
- |
PEXPIREAT |
SET |
- |
LPUSH |
- |
ZRANGEBYLEX |
- |
EXPIREAT |
SETBIT |
- |
- |
- |
ZLEXCOUNT |
- |
KEYS |
SETEX |
- |
- |
- |
ZREMRANGEBYSCORE |
- |
MIGRATE |
SETNX |
- |
- |
- |
ZREM |
- |
UNLINK |
SETRANGE |
- |
- |
- |
ZREMRANGEBYLEX |
- |
TOUCH |
STRLEN |
- |
- |
- |
ZPOPMAX |
- |
- |
BITFIELD |
- |
- |
- |
ZPOPMIN |
- |
- |
GETBIT |
- |
- |
- |
BZPOPMAX |
- |
- |
- |
- |
- |
- |
BZPOPMIN |
- |
- |
- |
- |
- |
- |
ZREVRANGEBYLEX |
- |
PFADD |
PSUBSCRIBE |
DISCARD |
AUTH |
EVAL |
GEOADD |
PFCOUNT |
PUBLISH |
EXEC |
ECHO |
EVALSHA |
GEOHASH |
PFMERGE |
PUBSUB |
MULTI |
PING |
SCRIPT EXISTS |
GEOPOS |
- |
PUNSUBSCRIBE |
UNWATCH |
QUIT |
SCRIPT FLUSH |
GEODIST |
- |
SUBSCRIBE |
WATCH |
SELECT |
SCRIPT KILL |
GEORADIUS |
- |
UNSUBSCRIBE |
- |
CLIENT KILL |
SCRIPT LOAD |
GEORADIUSBYMEMBER |
- |
- |
- |
CLIENT LIST |
SCRIPT DEBUG YES|SYNC|NO |
GEOSEARCH |
- |
- |
- |
CLIENT GETNAME |
- |
GEOSEARCHSTORE |
- |
- |
- |
CLIENT SETNAME |
- |
- |
DEL |
APPEND |
HDEL |
BLPOP |
SADD |
ZADD |
FLUSHALL |
DUMP |
BITCOUNT |
HEXISTS |
BRPOP |
SCARD |
ZCARD |
FLUSHDB |
EXISTS |
BITOP |
HGET |
BRPOPLRUSH |
SDIFF |
ZCOUNT |
DBSIZE |
EXPIRE |
BITPOS |
HGETALL |
LINDEX |
SDIFFSTORE |
ZINCRBY |
TIME |
MOVE |
DECR |
HINCRBY |
LINSERT |
SINTER |
ZRANGE |
INFO |
PERSIST |
DECRBY |
HINCRBYFLOAT |
LLEN |
SINTERSTORE |
ZRANGEBYSCORE |
MONITOR |
PTTL |
GET |
HKEYS |
LPOP |
SISMEMBER |
ZRANK |
SLOWLOG |
RANDOMKEY |
GETRANGE |
HMGET |
LPUSHX |
SMEMBERS |
ZREMRANGEBYRANK |
ROLE |
RENAME |
GETSET |
HMSET |
LRANGE |
SMOVE |
ZREMRANGEBYCORE |
SWAPDB |
RENAMENX |
INCR |
HSET |
LREM |
SPOP |
ZREVRANGE |
MEMORY |
RESTORE |
INCRBY |
HSETNX |
LSET |
SRANDMEMBER |
ZREVRANGEBYSCORE |
COMMAND |
SORT |
INCRBYFLOAT |
HVALS |
LTRIM |
SREM |
ZREVRANK |
COMMAND COUNT |
TTL |
MGET |
HSCAN |
RPOP |
SUNION |
ZSCORE |
COMMAND GETKEYS |
TYPE |
MSET |
HSTRLEN |
RPOPLPUSH |
SUNIONSTORE |
ZUNIONSTORE |
COMMAND INFO |
SCAN |
MSETNX |
HLEN |
RPUSH |
SSCAN |
ZINTERSTORE |
CONFIG GET |
OBJECT |
PSETEX |
- |
RPUSHX |
SPOP |
ZSCAN |
CONFIG RESETSTAT |
PEXPIRE |
SET |
- |
LPUSH |
- |
ZRANGEBYLEX |
CONFIG REWRITE |
PEXPIREAT |
SETBIT |
- |
- |
- |
ZLEXCOUNT |
CONFIG SET |
EXPIREAT |
SETEX |
- |
- |
- |
ZREMRANGEBYSCORE |
- |
KEYS |
SETNX |
- |
- |
- |
ZREM |
- |
MIGRATE |
SETRANGE |
- |
- |
- |
ZREMRANGEBYLEX |
- |
UNLINK |
STRLEN |
- |
- |
- |
BZPOPMAX |
- |
TOUCH |
BITFIELD |
- |
- |
- |
BZPOPMIN |
- |
- |
GETBIT |
- |
- |
- |
ZPOPMAX |
- |
- |
- |
- |
- |
- |
ZPOPMIN |
- |
- |
- |
- |
- |
- |
ZREVRANGEBYLEX |
- |
PFADD |
PSUBSCRIBE |
DISCARD |
AUTH |
EVAL |
GEOADD |
PFCOUNT |
PUBLISH |
EXEC |
ECHO |
EVALSHA |
GEOHASH |
PFMERGE |
PUBSUB |
MULTI |
PING |
SCRIPT EXISTS |
GEOPOS |
- |
PUNSUBSCRIBE |
UNWATCH |
QUIT |
SCRIPT FLUSH |
GEODIST |
- |
SUBSCRIBE |
WATCH |
SELECT |
SCRIPT KILL |
GEORADIUS |
- |
UNSUBSCRIBE |
- |
CLIENT KILL |
SCRIPT LOAD |
GEORADIUSBYMEMBER |
- |
- |
- |
CLIENT LIST |
SCRIPT DEBUG YES|SYNC|NO |
GEOSEARCH |
- |
- |
- |
CLIENT GETNAME |
- |
GEOSEARCHSTORE |
- |
- |
- |
CLIENT SETNAME |
- |
- |
Comandos deshabilitados por DCS for Redis 5.0
A continuación se enumeran los comandos deshabilitados por DCS for Redis 5.0.
MIGRATE |
SLAVEOF |
- |
SHUTDOWN |
- |
LASTSAVE |
- |
DEBUG commands |
- |
COMMAND |
- |
SAVE |
- |
BGSAVE |
- |
BGREWRITEAOF |
- |
SYNC |
- |
PSYNC |
MIGRATE |
BGREWRITEAOF |
- |
READONLY |
MOVE |
BGSAVE |
- |
READWRITE |
RANDOMKEY |
CLIENT commands |
- |
- |
WAIT |
DEBUG OBJECT |
- |
- |
- |
DEBUG SEGFAULT |
- |
- |
- |
LASTSAVE |
- |
- |
- |
PSYNC |
- |
- |
- |
SAVE |
- |
- |
- |
SHUTDOWN |
- |
- |
- |
SLAVEOF |
- |
- |
- |
LATENCY commands |
- |
- |
- |
MODULE commands |
- |
- |
- |
LOLWUT |
- |
- |
- |
SWAPDB |
- |
- |
- |
REPLICAOF |
- |
- |
- |
SYNC |
- |
- |
MIGRATE |
SLAVEOF |
CLUSTER MEET |
- |
SHUTDOWN |
CLUSTER FLUSHSLOTS |
- |
LASTSAVE |
CLUSTER ADDSLOTS |
- |
DEBUG commands |
CLUSTER DELSLOTS |
- |
COMMAND |
CLUSTER SETSLOT |
- |
SAVE |
CLUSTER BUMPEPOCH |
- |
BGSAVE |
CLUSTER SAVECONFIG |
- |
BGREWRITEAOF |
CLUSTER FORGET |
- |
SYNC |
CLUSTER REPLICATE |
- |
PSYNC |
CLUSTER COUNT-FAILURE-REPORTS |
- |
- |
CLUSTER FAILOVER |
- |
- |
CLUSTER SET-CONFIG-EPOCH |
- |
- |
CLUSTER RESET |
READONLY |
MIGRATE |
BGREWRITEAOF |
READWRITE |
WAIT |
BGSAVE |
- |
- |
DEBUG OBJECT |
- |
- |
DEBUG SEGFAULT |
- |
- |
LASTSAVE |
- |
- |
LOLWUT |
- |
- |
MODULE LIST/LOAD/UNLOAD |
- |
- |
PSYNC |
- |
- |
REPLICAOF |
- |
- |
SAVE |
- |
- |
SHUTDOWN [NOSAVE|SAVE] |
- |
- |
SLAVEOF |
- |
- |
SWAPDB |
- |
- |
SYNC |