Skip to main content
DevTools24

Construtor de Comandos Redis

Construa comandos Redis visualmente. Gere comandos para strings, hashes, listas, sets e sorted sets.

SET
Set string value
GET
Get string value
MSET
Set multiple keys
MGET
Get multiple keys
INCR
Increment integer value
INCRBY
Increment by value
DECR
Decrement integer value
APPEND
Append to string
STRLEN
Get string length
SETEX
Set with expiration
Select a command from the list
redis-cli -h localhost -p 6379

Comandos Redis - Detalhes Técnicos

Redis é um armazenamento de estruturas de dados em memória usado como cache e message broker. Tipos de dados principais: strings (GET/SET), hashes (HGET/HSET), listas (LPUSH/RPOP), sets (SADD/SMEMBERS) e sorted sets (ZADD/ZRANGE). Use EXPIRE para TTL.

Alternativa via Linha de Comando

# Common Redis operations
SET user:1 '{"name":"John"}' EX 3600
HSET user:1:profile name John age 30
LPUSH queue:jobs job1 job2

Referência

Ver Especificação Oficial