Here’s how to use key() function.key
Description: Get the values of all the given keys. Syntax: redis_get(con,key[,key1,key2,…]) Note: This external librarykey,values of multiple keys
Description: Get a substring of the string stored at a key. Syntax: redis_getrange(con,key,start,end) Note: External libkey,string,substring
Description: Get all the fields in a hash. Syntax: redis_hkeys(con,tbl) Note: This external library function won’t returhash,key,all fields
Description: Get the number of fields in a hash. Syntax: redis_hlen(con,tbl) Note: This external library function returnhash,key,number of fields
Description: Get the values of all the given hash fields. Syntax: redis_hmget(con,tbl,field[,field1,field2,....) Note: Ehash,key,values of given hash fields
Description: Get the values of all hash fields. Syntax: redis_hvals(con,tbl) Note: This external library function won’t hash,key,all hash fields
Description: Find all keys matching the specified pattern. Syntax: redis_keys(con,pattern) Note: This external library fmatching pattern,key
Description: Get a member from a list by its index. Syntax: redis_lindex(con,key,index) Note: External library function.key,index
Description: Get the length of a list. Syntax: redis_llen(con,key) Note: External library function. If the parameter keyget,key,length