Rust的Redis客户端-Rust开发

时间:2021-05-27 20:55:29
【文件属性】:
文件名称:Rust的Redis客户端-Rust开发
文件大小:27KB
文件格式:ZIP
更新时间:2021-05-27 20:55:29
Rust Database interfaces 我最近写了一个没有第三方库的Rust客户端库redis -rs Rust的Redis客户端。 纯Rust,不依赖于任何第三方库Cargo.toml [dependencies.redisclient] version =“ *” src / main.rs extern crate redisclient; 使用redisclient :: RedisResult; 使用redisclient :: RedisClient; fn main(){如果让Err(e)= run(){println!(“错误-> {}”,e); }} fn run()-> RedisResult {让mut client = RedisClient :: new()?; client.mset(vec![(“ key1”,1),(“ key2”,2)])?? 让值:Vec = client.mget(v
【文件预览】:
redis-rs-master
----.gitignore(327B)
----benches()
--------basic.rs(384B)
----Makefile(245B)
----src()
--------pool.rs(1KB)
--------pipeline.rs(726B)
--------error.rs(3KB)
--------connection.rs(4KB)
--------client.rs(43KB)
--------config.rs(947B)
--------macros.rs(2KB)
--------protocol()
--------lib.rs(1KB)
----LICENSE(1KB)
----Cargo.toml(271B)
----.github()
--------workflows()
----README.md(899B)
----tests()
--------test_keys_commands.rs(5KB)
--------test_connection_commands.rs(333B)
--------test_hashes_commands.rs(6KB)
--------test_sorted_sets.rs(1KB)
--------test_protocol.rs(2KB)
--------test_sets_commands.rs(6KB)
--------test_lists_commands.rs(6KB)
----rustfmt.toml(16B)
----docs()
--------commands()
----rust-toolchain(7B)

网友评论