/
Romenxek
/
Diplom
Обзор
Документация
Войти
/
Romenxek
/
Diplom
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Diplom
/
node_modules
/
lru-cache
/
..
LICENSE
first commit
год назад
README.md
first commit
год назад
index.d.ts
first commit
год назад
index.js
first commit
год назад
index.mjs
first commit
год назад
package.json
first commit
год назад
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