An open API service indexing awesome lists of open source software.

https://github.com/make-github-pseudonymous-again/idb-lru-cache

IndexedDB-based persisting LRU cache for the browser
https://github.com/make-github-pseudonymous-again/idb-lru-cache

Last synced: about 2 months ago
JSON representation

IndexedDB-based persisting LRU cache for the browser

Awesome Lists containing this project

README

          

[idb-lru-cache](https://make-github-pseudonymous-again.github.io/idb-lru-cache)
==

IndexedDB-based persisting LRU cache for the browser.
See [docs](https://make-github-pseudonymous-again.github.io/idb-lru-cache/index.html).

> :warning: Depending on your environment, the code may require
> `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).

```ts
const lru = cache({
dbName: 'cache-lru',
maxCount: 10,
});
```

[![License](https://img.shields.io/github/license/make-github-pseudonymous-again/idb-lru-cache.svg)](https://raw.githubusercontent.com/make-github-pseudonymous-again/idb-lru-cache/main/LICENSE)
[![Version](https://img.shields.io/npm/v/idb-lru-cache.svg)](https://www.npmjs.org/package/idb-lru-cache)
[![Tests](https://img.shields.io/github/actions/workflow/status/make-github-pseudonymous-again/idb-lru-cache/ci:cover.yml?branch=main&event=push&label=tests)](https://github.com/make-github-pseudonymous-again/idb-lru-cache/actions/workflows/ci:cover.yml?query=branch:main)
[![Dependencies](https://img.shields.io/librariesio/github/make-github-pseudonymous-again/idb-lru-cache.svg)](https://github.com/make-github-pseudonymous-again/idb-lru-cache/network/dependencies)
[![GitHub issues](https://img.shields.io/github/issues/make-github-pseudonymous-again/idb-lru-cache.svg)](https://github.com/make-github-pseudonymous-again/idb-lru-cache/issues)
[![Downloads](https://img.shields.io/npm/dm/idb-lru-cache.svg)](https://www.npmjs.org/package/idb-lru-cache)

[![Code issues](https://img.shields.io/codeclimate/issues/make-github-pseudonymous-again/idb-lru-cache.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/idb-lru-cache/issues)
[![Code maintainability](https://img.shields.io/codeclimate/maintainability/make-github-pseudonymous-again/idb-lru-cache.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/idb-lru-cache/trends/churn)
[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/make-github-pseudonymous-again/idb-lru-cache/main.svg)](https://codecov.io/gh/make-github-pseudonymous-again/idb-lru-cache)
[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/make-github-pseudonymous-again/idb-lru-cache.svg)](https://codeclimate.com/github/make-github-pseudonymous-again/idb-lru-cache/trends/technical_debt)
[![Documentation](https://make-github-pseudonymous-again.github.io/idb-lru-cache/coverage.svg)](https://make-github-pseudonymous-again.github.io/idb-lru-cache/modules.html)
[![Package size](https://img.shields.io/bundlephobia/minzip/idb-lru-cache)](https://bundlephobia.com/result?p=idb-lru-cache)

## :woman_teacher: API reference

See [docs](https://make-github-pseudonymous-again.github.io/idb-lru-cache/classes/IndexedDBPersistedLRUCache.html).