Plug in API Concordance Cache - czcorpus/kontext GitHub Wiki

Plug-ins / [conc_cache]

  • type: required
  • interface: plugins.abstract.conc_cache.AbstractConcCache
  • client-side code: -
  • purpose: concordance caching

The "conc_cache" plug-in provides functions needed by the conclib module when calculating and caching concordances. Currently it is not recommended to implement customized versions unless you know well what is going on during concordance calculation and caching.

The safest way here is to stick with the default_conc_cache.

# AbstractConcCache.refresh_map()

# AbstractConcCache.cache_file_path(subchash, q)

# AbstractConcCache.add_to_map(subchash, query, size, pid_file=None)

# AbstractConcCache.del_full_entry(entry_key)

# AbstractCacheMappingFactory.get_mapping(corpus)

(plugins.abstract.conc_cache.AbstractCacheMappingFactory)

Returns an instance of AbstractConcCache