return [ LanguageEvents::LANGUAGE_DELETED_EVENT => 'invalidateCache',
LanguageEvents::LANGUAGE_WRITTEN_EVENT => 'invalidateCache',
];
} /**
* @return LanguageData
*/
public function loadLanguages(): array
{ return $this->cache->
get(self::CACHE_KEY,
fn () =>
$this->loader->
loadLanguages());
} public function invalidateCache(): void
{ $this->cache->
delete(self::CACHE_KEY
);
}}