keys, getKeys
Description
Returns the keys that match a certain pattern.
返回某种计算模式取得的KEYS。
Description
Parameters
STRING: pattern, using '*' as a wildcard.
STRING:计算符
Return value
Array of STRING: The keys that match a certain pattern.
Example
$allKeys = $redis->keys('*'); // all keys will match this. $keyWithUserPrefix = $redis->keys('user*');