randomKey
Description
Returns a random key.
返回一个随机的KEY。
Parameters
None.
Return value
STRING: an existing key in redis.
STRING:一个存在于REDIS中的KEY
Example
$key = $redis->randomKey(); $surprise = $redis->get($key); // who knows what's in there.
Returns a random key.
返回一个随机的KEY。
None.
STRING: an existing key in redis.
STRING:一个存在于REDIS中的KEY
$key = $redis->randomKey(); $surprise = $redis->get($key); // who knows what's in there.