redis_command()

Read(2770) Label: redis, command,

Description:

Execute Redis commands.

Syntax:

redis_command(redisConn,commandParts)

Note:

The external library function (See External Library Guide) is used to execute various Redis commands.

Parameter:

redisConn

A Redis connection

commandParts

A sequence of Redis commands

Return value:

A sequence

Example:

 

A

 

1

=redis_open("127.0.0.1:6379")

Connect to Redis external library.

2

=redis_command(A1,["COMMAND"])

Execute the Redis command COMMAND to get definitions of all commands from A1.

3

=redis_command(A1,"SCAN 0 COUNT 5".split(" "))

Execute the Redis command SCAN to get a list of key names.