Skip to content

Commit

Permalink
fix typo in code example (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-housni authored Dec 5, 2024
1 parent 18c4d47 commit 7a74f3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cacheable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
```

Expand Down

0 comments on commit 7a74f3d

Please sign in to comment.