percas-client 0.3.1

A client for talking to the Percas server
Documentation

Percas Client

Crates.io Documentation MSRV 1.80 Apache 2.0 licensed Build Status

This crate provides a client for interacting with the Percas cache service.

Getting Started

Add percas-client to your Cargo.toml:

cargo add percas-client

Create a client instance and connect to the Percas service:

fn main() {
    let server_addr = "...";
    let factory = ClientFactory::new().unwrap();
    let client = factory.make_client(server_addr).unwrap();

    runtime.block_on(async move {
        let key = "example_key";
        let value = "example_value";
        client.put(key, value.as_bytes()).await.unwrap();
        let value = testkit.client.get(key).await.unwrap().unwrap();
        client.delete(key).await.unwrap();
    });
}

License

This work is licensed by Apache License 2.0.