Class ResultCache

java.lang.Object
org.languagetool.ResultCache

public class ResultCache extends Object
A cache to speed up text checking for use cases where sentences are checked more than once. This typically happens when using LT as a server and texts get re-checked after corrections have been applied for some sentences. Use the same cache object for all JLanguageTool objects only if the JLanguageTool objects all use the same rules. For example, if you call JLanguageTool.addRule() in different ways for the different instances that you use the same cache for, the cache will return invalid results. Using a cache with bitext rules isn't supported either. It is okay however, to use the same cache for JLanguageTool objects with different languages, as cached results are not used for a different language.
Since:
3.7