You are here

public function Redis_Path_AbstractHashLookup::lookupSource in Redis 7.3

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

Class

Redis_Path_AbstractHashLookup
Common implementation for Redis-based implementations

Code

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