redis_command()

Read(55) Label: redis, command,

Description:

Execute Redis commands.

Syntax:

redis_command(redisConn,commandParts)

Note:

The external library function is used to execute various Redis commands.

Parameters:

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