You are here

public function Redis_Path_Predis::lookupSource in Redis 7.2

Lookup any source for the given alias

First that has been inserted wins over the others

Parameters

string $alias:

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::lookupSource

File

lib/Redis/Path/Predis.php, line 135

Class

Redis_Path_Predis
PhpRedis implementation.

Code

public function lookupSource($alias, $language = null) {
  return $this
    ->lookupInHash(self::KEY_SOURCE, $alias, $language);
}