Crate mcmc_rs

Crate mcmc_rs 

Source
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§

ClientCrc32
Item
MaItem
Manager
MdItem
MgItem
MsItem
Pipeline
WatchStream

Enums§

AddrArg
Connection
LruArg
LruCrawlerArg
LruCrawlerCrawlArg
LruCrawlerMetadumpArg
LruCrawlerMgdumpArg
LruMode
MaFlag
MaMode
MdFlag
MgFlag
MsFlag
MsMode
PipelineResponse
SlabsAutomoveArg
StatsArg
WatchArg

Type Aliases§

Pool