You are here

public function Redis_Path_PhpRedis::deleteLanguage in Redis 7.2

Same name and namespace in other branches
  1. 7.3 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 87

Class

Redis_Path_PhpRedis
PhpRedis implementation.

Code

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