public function createGramInfo($storage) { //return new phpMorphy_GramInfo_RuntimeCaching(new phpMorphy_GramInfo_Proxy($storage)); //return new phpMorphy_GramInfo_RuntimeCaching(phpMorphy_GramInfo::create($storage, false)); $result = new Gram\Info\RuntimeCaching(new Gram\Info\Proxy\WithHeader($storage, $this->bundle->getGramInfoHeaderCacheFile())); if ($this->options['use_ancodes_cache']) { return new Gram\Info\AncodeCache($result, $this->factory->open($this->options['storage'], $this->bundle->getGramInfoAncodesCacheFile(), true)); } else { return $result; } }