
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@gomomento/sdk
Advanced tools
Momento Cache is a fast, simple, pay-as-you-go caching solution without any of the operational overhead required by traditional caching solutions. This repo contains the source code for the Momento client library for Node.js.
To get started with Momento you will need a Momento Auth Token. You can get one from the Momento Console.
The node.js SDK is available on npmjs: @gomomento/sdk
.
The node.js SDK is the best choice for server-side JavaScript applications or environments where performance considerations are key. If you are writing a browser application or other JavaScript code that will run outside of node.js, check out the Momento Web SDK.
import {CacheClient, CacheGetResponse} from '@gomomento/sdk';
async function main() {
const cacheClient = await CacheClient.create({
defaultTtlSeconds: 60,
});
await cacheClient.createCache('cache');
await cacheClient.set('cache', 'foo', 'FOO');
const getResponse = await cacheClient.get('cache', 'foo');
if (getResponse.type === CacheGetResponse.Hit) {
console.log(`Got value: ${getResponse.valueString()}`);
}
}
main().catch(e => {
throw e;
});
Documentation is available on the Momento Docs website.
Working example projects, with all required build configuration files, are available in the examples' subdirectory.
If you are interested in contributing to the SDK, please see the CONTRIBUTING docs.
For more info, visit our website at https://gomomento.com!
FAQs
Client SDK for Momento services
The npm package @gomomento/sdk receives a total of 14,818 weekly downloads. As such, @gomomento/sdk popularity was classified as popular.
We found that @gomomento/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
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.