src/Graviton/I18nBundle/Translator/Translator.php
private function saveToCache($original, $translations)
    {
        $cacheKey = $this->getCacheKey($original);
        $cacheContent = $this->cache->fetch($cacheKey);
        if (is_array($cacheContent)) {
            $cacheContent[$original] = $translations;
        } else {
            $cacheContent = [$original => $translations];
        }

        $this->cache->save($cacheKey, $cacheContent);
    }
private function saveToCache($original, $translations)
    {
        $cacheKey = $this->getCacheKey($original);
        $cacheContent = $this->cache->fetch($cacheKey);
        if (is_array($cacheContent)) {
            $cacheContent[$original] = $translations;
        } else {
            $cacheContent = [$original => $translations];
        }

        $this->cache->save($cacheKey, $cacheContent);
    }
private function saveToCache ( $ original , $ translations ) { $ cacheKey = $ this -> getCacheKey ( $ original ) ; $ cacheContent = $ this -> cache -> fetch ( $ cacheKey ) ; if ( is_array ( $ cacheContent ) ) { $ cacheContent [ $ original ] = $ translations ; } else { $ cacheContent = [ $ original => $ translations ] ; } $ this -> cache -> save ( $ cacheKey , $ cacheContent ) ; }
saves entry to cache

@param string $original     original string
@param array  $translations translations

@return void
saves entry to cache