/
aburavov
/
ready_web_app
Обзор
Документация
Войти
/
aburavov
/
ready_web_app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
ready_web_app
/
node_modules
/
lru-cache
/
..
LICENSE
first com
год назад
README.md
first com
год назад
index.d.ts
first com
год назад
index.js
first com
год назад
index.mjs
first com
год назад
package.json
first com
год назад
lru-cache
Installation
Usage
Options
`max`
`maxSize`
`maxEntrySize`
`sizeCalculation`
`fetchMethod`
`fetchContext`
`noDeleteOnFetchRejection`
`allowStaleOnFetchRejection`
`allowStaleOnFetchAbort`
`ignoreFetchAbort`
`dispose`
`disposeAfter`
`noDisposeOnSet`
`ttl`
`noUpdateTTL`
`ttlResolution`
`ttlAutopurge`
`allowStale`
`noDeleteOnStaleGet`
`updateAgeOnGet`
`updateAgeOnHas`
API
`new LRUCache(options)`
`cache.max`, `cache.maxSize`, `cache.allowStale`,
`cache.size`
`cache.calculatedSize`
`set(key, value, [{ size, sizeCalculation, ttl, noDisposeOnSet, start, status }])`
`get(key, { updateAgeOnGet, allowStale, status } = {}) => value`
`async fetch(key, options = {}) => Promise`
`peek(key, { allowStale } = {}) => value`
`has(key, { updateAgeOnHas, status } = {}) => Boolean`
`delete(key)`
`clear()`
`keys()`
`rkeys()`
`values()`
`rvalues()`
`entries()`
`rentries()`
`find(fn, [getOptions])`
`dump()`
`load(entries)`
`purgeStale()`
`getRemainingTTL(key)`
`forEach(fn, [thisp])`
`rforEach(fn, [thisp])`
`pop()`
Internal Methods and Properties
Status Tracking
Storage Bounds Safety
Performance
Breaking Changes in Version 7
README.md