chickadee » hiredis » redis-command

redis-command command #!rest argsprocedure

Execute a Redis command with optional arguments.

Parameters:

  • command: Redis command string (e.g., "GET", "SET", "HGET")
  • args: Optional command arguments

Returns: Scheme object representation of Redis reply

;; String operations
(redis-command "GET" "mykey")
(redis-command "SET" "mykey" "myvalue")

;; Hash operations
(redis-command "HGET" "myhash" "field")
(redis-command "HSET" "myhash" "field" "value")

;; List operations
(redis-command "LPUSH" "mylist" "item1" "item2")
(redis-command "LRANGE" "mylist" "0" "-1")

;; Key operations
(redis-command "KEYS" "*")
(redis-command "EXISTS" "mykey")
(redis-command "DEL" "key1" "key2")