redis_type()

Read(264) Label: key, store, data type of a value,

Description:

Get the data type of the value stored in the key.

Syntax:

redis_type(con,key)

Note:

This external library function returns value in the following data types:

None (key isn’t supplied)

String

List

Set

Zset

Hash

Parameters:

con

Database connection string

key

Key name

Return value:

Data type of the key value.

Example:

 

A

 

1

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

 

2

=redis_type(A1,"weather")

3

=redis_type(A1,"db")

4

=redis_type(A1,"page_rank")