Skip to main content

CatalogProcessorCache

Home > @backstage/plugin-catalog-node > CatalogProcessorCache

A cache for storing data during processing.

The values stored in the cache are always local to each processor, meaning no processor can see cache values from other processors.

The cache instance provided to the CatalogProcessor is also scoped to the entity being processed, meaning that each processor run can't see cache values from processing runs for other entities.

Values that are set during a processing run will only be visible in the directly following run. The cache will be overwritten every run unless no new cache items are written, in which case the existing values remain in the cache.

Signature:

export interface CatalogProcessorCache 

Methods

MethodDescription
get(key)Retrieve a value from the cache.
set(key, value)Store a value in the cache.