Expand description
Asynchronous memcached client on Rust.
This crate provides working with memcached server. All methods implemented. Available TCP/Unix/UDP connections.
- Connection is a Enum that represents a connection to memcached server.
- Pipeline is a structure that represents a pipeline of memcached commands.
- WatchStream is a structure that represents a stream of watch events.
- ClientCrc32 is a structure that represents a Cluster connections for memcached server.
§Examples
use smol::{block_on, io};
use mcmc_rs::Connection;
fn main() -> io::Result<()> {
block_on(async {
let mut conn = Connection::default().await?;
conn.set(b"key", 0, 0, false, b"value").await?;
let item = conn.get(b"key").await?.unwrap();
println!("{item:#?}");
Ok(())
})
}Structs§
Enums§
- AddrArg
- Connection
- LruArg
- LruCrawler
Arg - LruCrawler
Crawl Arg - LruCrawler
Metadump Arg - LruCrawler
Mgdump Arg - LruMode
- MaFlag
- MaMode
- MdFlag
- MgFlag
- MsFlag
- MsMode
- Pipeline
Response - Slabs
Automove Arg - Stats
Arg - Watch
Arg