UNPKG

@toreda/cache

Version:

Time-based object cache in TypeScript.

57 lines (34 loc) 1.94 kB
![Toreda](https://content.toreda.com/logo/toreda-logo.png) [![CI](https://img.shields.io/github/workflow/status/toreda/cache/CI?style=for-the-badge)](https://github.com/toreda/cache/actions) [![Coverage](https://img.shields.io/sonar/coverage/toreda_cache?server=https%3A%2F%2Fsonarcloud.io&style=for-the-badge)](https://sonarcloud.io/dashboard?id=toreda_cache) ![Sonar Quality Gate](https://img.shields.io/sonar/quality_gate/toreda_cache?server=https%3A%2F%2Fsonarcloud.io&style=for-the-badge) [![GitHub issues](https://img.shields.io/github/issues/toreda/cache?style=for-the-badge)](https://github.com/toreda/cache/issues) [![GitHub package.json version (branch)](https://img.shields.io/github/package-json/v/toreda/cache/master?style=for-the-badge)](https://github.com/toreda/cache/releases/latest) [![GitHub Release Date](https://img.shields.io/github/release-date/toreda/cache?style=for-the-badge)](https://github.com/toreda/cache/releases/latest) [![license](https://img.shields.io/github/license/toreda/cache?style=for-the-badge)](https://github.com/toreda/cache/blob/master/LICENSE)   # `@toreda/cache` Simple TTL-based object cache in TypeScript.   # Install `@toreda/cache` is available as an [NPM package](https://www.npmjs.com/package/@toreda/cache).   **Install with yarn:** ```bash yarn add @toreda/cache ``` **or Install with NPM:** ```bash npm install @toreda/cache ``` # Usage ```typescript ``` # Source Code `@toreda/cache` is an open source package provided under the MIT License. Download, clone, or check the complete project source [here on Github](https://www.npmjs.com/package/@toreda/cache). We welcome bug reports, comments, and pull requests.   # Legal ## License [MIT](LICENSE) © Toreda, Inc. ## Copyright Copyright © 2019 - 2022 Toreda, Inc. All Rights Reserved.   # Website https://www.toreda.com