@wireapp/lru-cache
Version:
Least Recently Used (LRU) Cache for JavaScript and TypeScript.
25 lines (15 loc) • 610 B
Markdown
This repository is part of the source code of Wire. You can find more information at [wire.com](https://wire.com) or by contacting opensource@wire.com.
You can find the published source code at [github.com/wireapp](https://github.com/wireapp).
For licensing information, see the attached LICENSE file and the list of third-party licenses at [wire.com/legal/licenses/](https://wire.com/legal/licenses/).
```bash
yarn add @wireapp/lru-cache
```
```ts
import {LRUCache} from '@wireapp/lru-cache';
const cache = new LRUCache();
cache.set('Key', 'Value');
```