Class AbstractStringTranslationCache

java.lang.Object
com.e1c.langtool.v8.dt.translator.AbstractStringTranslationCache
All Implemented Interfaces:
SessionCache
Direct Known Subclasses:
DataPathSegmentsTranslationCache, ModelNameTranslationCache, ModelStringsContextTranslationCache

public class AbstractStringTranslationCache extends Object implements SessionCache
Abstract string cache temperary stores data in temp file that deletes after close the cache.
See Also:
  • Constructor Details

    • AbstractStringTranslationCache

      public AbstractStringTranslationCache()
  • Method Details

    • get

      protected String get(String key)
    • get

      protected String get(String key, com.google.inject.Provider<String> provider)
    • put

      protected void put(String key, String translation)
    • remove

      protected String remove(String key)
    • clear

      public void clear()
      Description copied from interface: SessionCache
      Clear all holding cache
      Specified by:
      clear in interface SessionCache
    • dispose

      protected void dispose()
    • configureDb

      protected void configureDb(org.mapdb.DBMaker<?> dbMaker)
    • getCacheMap

      protected ConcurrentMap<String,String> getCacheMap(org.mapdb.DB db)