1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* These are the public namespaces shown in import paths e.g.
    use momento::config::configurations::laptop;
    use momento::cache::{Get, GetRequest, Set, SetRequest};
*/
pub mod auth;
pub mod cache;
/// Configuration structs for the Momento clients.
pub mod config;
pub mod errors;
pub mod response;
pub mod topics;
/*************************************************************/

mod cache_client;
mod cache_client_builder;
mod compression_utils;
mod credential_provider;
mod grpc;
mod simple_cache_client;
mod utils;

pub use self::errors::*;
pub use crate::credential_provider::CredentialProvider;
pub use crate::response::simple_cache_client_sorted_set;
pub use crate::simple_cache_client::{Fields, SimpleCacheClient, SimpleCacheClientBuilder};

pub use crate::cache_client::CacheClient;

pub type MomentoResult<T> = Result<T, MomentoError>;

pub use crate::utils::{IntoBytes, IntoBytesIterable};