redis_strlen()

Read(279) Label: key, store, string, length,

Description:

Get the length of the string value stored in the key.

Syntax:

redis_strlen(con,key)

Note:

This external library function returns 0 if the parameter key isn’t supplied.

Parameters:

con

Database connection string

key

Key name

Return value:

The length of the string value.

Example:

 

A

 

1

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

 

 2

=redis_strlen(A1,"name")

3

=redis_strlen(A1,"age")