
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@sailplane/expiring-value
Advanced tools
Container for a value that is instantiated on-demand (lazy-loaded via factory) and cached for a limited time.
The ExpringValue
generic class is a container for a value that is instantiated on-demand (lazy-loaded via factory) and cached for a limited
time. Once the cache expires, the factory is used again on next demand to get a fresh version.
This is part of the sailplane library of utilities for AWS Serverless in Node.js.
ExpiringValue
is a container for a value that is instantiated on-demand (lazy-loaded via factory)
and cached for a limited time.
Once the cache expires, the factory is used again on next demand to get a fresh version.
In Lambda functions, it is useful to cache some data in instance memory to avoid
recomputing or fetching data on every invocation. In the early days of Lambda, instances only lasted 15 minutes
and thus set an upper-limit on how stale the cached data could be. With instances now seen to last for
many hours, a mechanism is needed to deal with refreshing stale content - thus ExpiringValue
was born.
ExpiringValue
is not limited to Lambdas, though. Use it anywhere you want to cache a value for
a limited time. It even works in the browser for client code.
See the docs for usage and examples.
FAQs
Container for a value that is instantiated on-demand (lazy-loaded via factory) and cached for a limited time.
We found that @sailplane/expiring-value demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.