Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@digitalcredentials/lru-memoize
Advanced tools
A Memoized wrapper around the javascript
lru-cache
library.
(Forked from digitalbazaar/lru-memoize
v2.0.0
to provide TypeScript and ReactNative compatibility.)
lru-memoize is used to
to memoize promises
(as opposed to just the results of the operations),
which helps in high-concurrency use cases. (And in turn, it uses
lru-cache
under the hood.)
The memoized LruCache
constructor passes any options given to it through to
the lru-cache
constructor, so see that repo for the full list of cache
management options. Commonly used ones include:
max
(default: 100) - maximum size of the cache.maxAge
(default: 5 sec/5000 ms) - maximum age of an item in ms.updateAgeOnGet
(default: false
) - When using time-expiring entries with
maxAge
, setting this to true will make each entry's effective time update to
the current time whenever it is retrieved from cache, thereby extending the
expiration date of the entry.To install locally (for development):
git clone https://github.com/digitalcredentials/lru-memoize.git
cd lru-memoize
npm install
PRs accepted.
If editing the Readme, please conform to the standard-readme specification.
FAQs
LRU Memoize
The npm package @digitalcredentials/lru-memoize receives a total of 134 weekly downloads. As such, @digitalcredentials/lru-memoize popularity was classified as not popular.
We found that @digitalcredentials/lru-memoize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.