protected function storeCache(array $languages, string $listIndex = null): void
    {
        $this->cache->setMulti(
            $languages,
            static function (Language $language) {
                return [
                        'ez-language-' . $language->id,
                        'ez-language-code-' . $language->languageCode,
                    ];
            },
            $listIndex
        );
    }
protected function storeCache(array $languages, string $listIndex = null): void
    {
        $this->cache->setMulti(
            $languages,
            static function (Language $language) {
                return [
                        'ez-language-' . $language->id,
                        'ez-language-code-' . $language->languageCode,
                    ];
            },
            $listIndex
        );
    }
protected function storeCache ( array $ languages , string $ listIndex = null ) : void { $ this -> cache -> setMulti ( $ languages , static function ( Language $ language ) { return [ 'ez-language-' . $ language -> id , 'ez-language-code-' . $ language -> languageCode , ] ; } , $ listIndex ) ; }
Helper to store languages in internal in-memory cache with all needed keys.

@param array $languages
@param string|null $listIndex
Helper to store languages in internal in - memory cache with all needed keys .