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
- Host: GitHub
- URL: https://github.com/make-github-pseudonymous-again/idb-lru-cache
- Owner: make-github-pseudonymous-again
- License: agpl-3.0
- Created: 2022-05-28T22:41:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-15T14:23:03.000Z (8 months ago)
- Last Synced: 2025-03-15T15:27:43.983Z (8 months ago)
- Language: TypeScript
- Homepage: https://make-github-pseudonymous-again.github.io/idb-lru-cache
- Size: 803 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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,
});
```
[](https://raw.githubusercontent.com/make-github-pseudonymous-again/idb-lru-cache/main/LICENSE)
[](https://www.npmjs.org/package/idb-lru-cache)
[](https://github.com/make-github-pseudonymous-again/idb-lru-cache/actions/workflows/ci:cover.yml?query=branch:main)
[](https://github.com/make-github-pseudonymous-again/idb-lru-cache/network/dependencies)
[](https://github.com/make-github-pseudonymous-again/idb-lru-cache/issues)
[](https://www.npmjs.org/package/idb-lru-cache)
[](https://codeclimate.com/github/make-github-pseudonymous-again/idb-lru-cache/issues)
[](https://codeclimate.com/github/make-github-pseudonymous-again/idb-lru-cache/trends/churn)
[](https://codecov.io/gh/make-github-pseudonymous-again/idb-lru-cache)
[](https://codeclimate.com/github/make-github-pseudonymous-again/idb-lru-cache/trends/technical_debt)
[](https://make-github-pseudonymous-again.github.io/idb-lru-cache/modules.html)
[](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).