This integration allows you to connect to Momento from your Worker by getting Momento cache configuration and adding it as [secrets](https://1d791deb.cloudflare-docs-7ou.pages.dev/workers/configuration/environment-variables/) to your Worker.
## Momento Cache
To set up an integration with Momento Cache:
1. You need to have an existing Momento cache to connect to or create a new cache through the [Momento console](https://console.gomomento.com/).
2. If you do not have an existing cache, create one and assign `user-profiles` as the cache name.
3. Add the Momento database integration to your Worker:
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
2. In **Account Home**, select **Workers & Pages**.
3. In **Overview**, select your Worker.
4. Select **Integrations** > **Momento**.
5. Follow the setup flow, review and grant permissions needed to add secrets to your Worker.
6. Next, connect to Momento.
7. Select a preferred region.
8. Click **Add integration**.
4. The following example code show how to set an item in your cache, get it, and return it as a JSON object. The credentials needed to connect to Momento Cache have been automatically added as [secrets](/workers/configuration/secrets/) to your Worker through the integration.