Skip to content

Commands functions in the Redis DuckDB extension

Function category

Commands

1 function

redis_command

Scalar function Commands
Signature
redis_command(args: VARCHAR[], secret_name: VARCHAR) → VARCHAR
Arguments (Positional)
Argument args Type VARCHAR[] Mode Positional Description
Argument secret_name Type VARCHAR Mode Positional Description
Description
1 Example 1
SELECT redis_command(['SADD', 'myset', 'a'], 'my_redis_secret');
2 Example 2
SELECT redis_command(['SMEMBERS', 'myset'], 'my_redis_secret')::JSON;
3 Example 3
SELECT redis_command(['INCRBY', 'counter', '5'], 'my_redis_secret')::BIGINT;