From 7a74f3d11f77f1c1577a2230baf1035248cbc105 Mon Sep 17 00:00:00 2001 From: m-housni Date: Thu, 5 Dec 2024 12:42:58 +0100 Subject: [PATCH] fix typo in code example (#922) --- packages/cacheable/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cacheable/README.md b/packages/cacheable/README.md index 19a4650e..a91427d3 100644 --- a/packages/cacheable/README.md +++ b/packages/cacheable/README.md @@ -4,6 +4,8 @@ > High Performance Layer 1 / Layer 2 Caching with Keyv Storage + + [![codecov](https://codecov.io/gh/jaredwray/cacheable/graph/badge.svg?token=lWZ9OBQ7GM)](https://codecov.io/gh/jaredwray/cacheable) [![tests](https://github.com/jaredwray/cacheable/actions/workflows/tests.yml/badge.svg)](https://github.com/jaredwray/cacheable/actions/workflows/tests.yml) [![npm](https://img.shields.io/npm/dm/cacheable.svg)](https://www.npmjs.com/package/cacheable) @@ -375,7 +377,7 @@ import { KeyvCacheableMemory } from 'cacheable'; const keyv = new Keyv({ store: new KeyvCacheableMemory() }); await keyv.set('foo', 'bar'); -const value = await keyv.get('key'); +const value = await keyv.get('foo'); console.log(value); // bar ```