Crates.io | memcached |
lib.rs | memcached |
version | 0.4.5-beta.2 |
source | src |
created_at | 2020-05-09 11:01:03.637059 |
updated_at | 2023-06-21 09:09:26.346376 |
description | async memcached rust client |
homepage | |
repository | https://github.com/umonkey/memcached |
max_upload_size | |
id | 239198 |
size | 84,046 |
This project is still under development. The following features with the check marks are supported.
If you are concerned about an unimplemented feature, please tell me and I will finish writing it ASAP.
&[u8]
/ Vec<u8>
This example uses async-std and enables some optional features, so your Cargo.toml could look like this:
[dependencies]
async-std = { version = "1", features = ["attributes"] }
memcached = "*"
And then the code:
#[async_std::test]
async fn it_works() -> memcached::Result<()> {
let client = memcached::connect("memcache://127.0.0.1:12345")?;
client.set("abc", "hello", 100).await?;
let t: Option<String> = client.get("abc").await?;
assert_eq!(t, Some("hello".to_owned()));
Ok(())
}
For more usage, see doc, each method of client has example.
Better not.
This project needs a lot of details to complete. But if you want, you can try it.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions