Changeset.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-05-13 17:51:51 +02:00
parent 6f6ebd248f
commit c7dad92187
+16
View File
@@ -0,0 +1,16 @@
---
'@backstage/backend-common': patch
---
Plugin developers may now provide handlers for connection errors emitted by cache stores.
```typescript
// Providing an error handler
const cacheClient = somePluginCache.getClient({
defaultTtl: 3600000,
onError: e => {
logger.error(`There was a cache connection problem: ${e.message}`);
execOtherErrorHandlingLogic();
},
});
```