Class TranslationBatchReadCache

java.lang.Object
org.broadleafcommerce.common.i18n.service.TranslationBatchReadCache

public class TranslationBatchReadCache extends Object
Thread-local cache structure that contains all of the Translations for a batch of processing. This is mainly used when executing a search re-index operation. Rather than go to the database for each item being indexed, it makes more sense to go to the database once, cache all of the results here, and then let the TranslationService use this instead.
Author:
Phillip Verheyden (phillipuniverse)