Update dependency @keyv/redis to v2.5.2

Signed-off-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
renovate[bot]
2022-10-19 02:15:55 +00:00
committed by Fredrik Adelöw
parent 4a6143a3be
commit 59bfef78a3
2 changed files with 22 additions and 38 deletions
+4 -2
View File
@@ -14,11 +14,13 @@
* limitations under the License.
*/
import { Store } from 'keyv';
/**
* Storage class compatible with Keyv which always results in a no-op. This is
* used when no cache store is configured in a Backstage backend instance.
*/
export class NoStore extends Map<string, any> {
export class NoStore implements Store<string | undefined> {
clear(): void {
return;
}
@@ -28,7 +30,7 @@ export class NoStore extends Map<string, any> {
}
get(_key: string) {
return;
return undefined;
}
has(_key: string): boolean {