infinispan-rs
infinispan-rs is a Rust client for the Infinispan REST API. For now, it implements a small part of the API.
Install
Add the infinispan
dependency to your Cargo.toml
:
[]
= "0.3"
Usage
use Infinispan;
use request;
// Create a client
let client = new;
// Create a cache
let req = create_local;
let _ = client.run.await.unwrap;
// Create an entry
let req = create.with_value;
let _ = client.run.await.unwrap;
// Read the entry
let req = get;
let resp = client.run.await.unwrap;
// resp is an instance of `reqwest::Response`
assert!;
assert_eq!;
Check the docs to learn more.
Development
Build
Run the tests
Some tests need Infinispan running in localhost:11222
. You can run it in
Docker with:
Then, run the tests: