You are here

public function Redis_Path_PhpRedis::deleteLanguage in Redis 7.3

Same name and namespace in other branches
  1. 7.2 lib/Redis/Path/PhpRedis.php \Redis_Path_PhpRedis::deleteLanguage()

A language is being deleted

Parameters

string $language:

Overrides Redis_Path_HashLookupInterface::deleteLanguage

File

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

Class

Redis_Path_PhpRedis
PhpRedis implementation.

Code

public function deleteLanguage($language) {
  $client = $this
    ->getClient();
  $client
    ->del($this
    ->getKey(array(
    self::KEY_ALIAS,
    $language,
  )));
  $client
    ->del($this
    ->getKey(array(
    self::KEY_SOURCE,
    $language,
  )));
}