You are here

public function Redis_Path_AbstractHashLookup::lookupAlias in Redis 7.3

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/AbstractHashLookup.php, line 89

Class

Redis_Path_AbstractHashLookup
Common implementation for Redis-based implementations

Code

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