
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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 8,360 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.