Momento Client Library for Rust
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 Rust.
To get started with Momento you will need a Momento Auth Token. You can get one from the Momento Console.
- Website: https://www.gomomento.com/
- Momento Documentation: https://docs.momentohq.com/
- Getting Started: https://docs.momentohq.com/getting-started
- Momento SDK Documentation for Rust: https://docs.momentohq.com/sdks/rust
- Discuss: Momento Discord
Packages
The Momento Rust SDK package is available on crates.io: momento.
You will need to install additional dependencies to make full use of our SDK:
Note: you will only need to install futures if you use Momento Topics.
Prerequisites
- Follow the installation guide to install Rust and Cargo.
- To get started with Momento you will need a Momento API key. You can get one from the Momento Console.
- A Momento service endpoint is required. You can find a list of them here
Usage
Here is a quickstart you can use in your own project:
use ;
use ;
use Duration;
const CACHE_NAME: &str = "cache";
pub async
Getting Started and Documentation
Documentation is available on the Momento Docs website.
Examples
Ready to dive right in? Just check out the example directory for complete, working examples of how to use the SDK.
Developing
If you are interested in contributing to the SDK, please see the CONTRIBUTING docs.
For more info, visit our website at https://gomomento.com!