You are here

public function Redis_Path_PhpRedis::lookupAlias in Redis 7.2

Lookup any alias for the given source

First that has been inserted wins over the others

Parameters

string $source:

string $language:

Return value

string|null|false

  • The string value if found
  • null if not found
  • false if set as non existing

Overrides Redis_Path_HashLookupInterface::lookupAlias

File

lib/Redis/Path/PhpRedis.php, line 130

Class

Redis_Path_PhpRedis
PhpRedis implementation.

Code

public function lookupAlias($source, $language = null) {
  return $this
    ->lookupInHash(self::KEY_ALIAS, $source, $language);
}