UNPKG

@wireapp/lru-cache

Version:

Least Recently Used (LRU) Cache for JavaScript and TypeScript.

25 lines (15 loc) 610 B
# Wire 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/). ## LRUCache ### Installation ```bash yarn add @wireapp/lru-cache ``` ### Usage ```ts import {LRUCache} from '@wireapp/lru-cache'; const cache = new LRUCache(); cache.set('Key', 'Value'); ```