percas-client

Crates.iopercas-client
lib.rspercas-client
version0.2.2
created_at2025-04-16 14:52:25.209954+00
updated_at2025-09-24 04:28:46.915927+00
descriptionA client for talking to the Percas server
homepage
repositoryhttps://github.com/scopedb/percas/
max_upload_size
id1636540
size45,286
Yu Lei (leiysky)

documentation

README

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.

Commit count: 86

cargo fmt