Sastrawi\Stemmer\StemmerFactory::getWords PHP Method

getWords() protected method

protected getWords ( $isDev = false )
    protected function getWords($isDev = false)
    {
        if ($isDev || !function_exists('apc_fetch')) {
            $words = $this->getWordsFromFile();
        } else {
            $words = apc_fetch(self::APC_KEY);
            if ($words === false) {
                $words = $this->getWordsFromFile();
                apc_store(self::APC_KEY, $words);
            }
        }
        return $words;
    }