get

PHP Redis

get

Description

Get the value related to the specified key

取得与指定的键值相关联的值

Parameters

key

Return Value

String or Bool: If key didn't exist, FALSE is returned. Otherwise, the value related to this key is returned.

返回相关值或者BOOL值,如果KEY不存在,返回FALSE。如果有相关的KEY和值返回值。

Examples
$redis->get('key');