You are here

public function Redis_Path_AbstractHashLookup::deleteAlias in Redis 7.3

Alias is being deleted for the given source

Parameters

string $source:

string $alias:

string $language:

Overrides Redis_Path_HashLookupInterface::deleteAlias

File

lib/Redis/Path/AbstractHashLookup.php, line 73

Class

Redis_Path_AbstractHashLookup
Common implementation for Redis-based implementations

Code

public function deleteAlias($source, $alias, $language = null) {
  $alias = $this
    ->normalize($alias);
  $source = $this
    ->normalize($source);
  if (null === $language) {
    $language = LANGUAGE_NONE;
  }
  $this
    ->deleteInHash($this
    ->getKey(array(
    self::KEY_ALIAS,
    $language,
  )), $source, $alias);
  $this
    ->deleteInHash($this
    ->getKey(array(
    self::KEY_SOURCE,
    $language,
  )), $alias, $source);
}