Reads data associated with the given token.
The method returns false if the token does not exists in the storage.
string $token A token:
Profile The profile associated with token
Overrides ProfilerStorageInterface::read
public function read($token) {
if (empty($token)) {
return false;
}
$profile = $this
->getValue($this
->getItemName($token), self::REDIS_SERIALIZER_PHP);
if (false !== $profile) {
$profile = $this
->createProfileFromData($token, $profile);
}
return $profile;
}