Skip to main content

CacheManager

Home > @backstage/backend-common > CacheManager

Implements a Cache Manager which will automatically create new cache clients for plugins when requested. All requested cache clients are created with the connection details provided.

Signature:

class CacheManager 

Methods

MethodModifiersDescription
forPlugin(pluginId)Generates a PluginCacheManager for consumption by plugins.
fromConfig(config, options)staticCreates a new CacheManager instance by reading from the backend config section, specifically the .cache key.