redis_llen()

Read(208) Label: get, key, length,

Description:

Get the length of a list.

Syntax:

redis_llen(con,key)

Note:

External library function. If the parameter key isn’t supplied, the function will interpret it as an empty list and return 0. If the data type of the parameter key isn’t list, an error will be reported.

Parameters:

con

Database connection string

key

List name

Return value:

The length of the list.

Example:

 

A

 

1

=redis("192.168.18.131:6379","runqian")

 

2

= redis_llen(A1,"abc")

3

= redis_llen(A1,"mylist")

Related functions:

redis()