Momento Rust Client Library
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 Rust client library.
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
- Rust SDK Documentation: https://docs.momentohq.com/sdks/rust
- Discuss: Momento Discord
Packages
The Momento Rust SDK package is available on crates.io: momento.
Usage
Here is a quickstart you can use in your own project:
use laptop;
use Get;
use ;
use Duration;
const CACHE_NAME: &str = "cache";
pub async
Note that the above code requires an environment variable named MOMENTO_API_KEY which must be set to a valid Momento authentication token.
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!