| Crates.io | valor_kv |
| lib.rs | valor_kv |
| version | 0.2.2 |
| created_at | 2025-02-23 12:27:18.476663+00 |
| updated_at | 2025-02-23 13:55:14.488809+00 |
| description | Simple and efficient key value store built with Rust |
| homepage | https://github.com/alex289/valor-kv |
| repository | https://github.com/alex289/valor-kv |
| max_upload_size | |
| id | 1566322 |
| size | 60,000 |
ValorKV is a lightweight key-value store built in Rust, designed for speed and simplicity. It uses a custom TCP protocol for communication and bincode for efficient serialization.
config.toml file and environment variables for configuration.Using Docker:
docker run -p 6380:6380 -d ghcr.io/alex289/valor-kv:latest
#or
docker run -p 6380:6380 -d alexdev28/valor-kv:latest
Using Cargo:
cargo install valor_kv
valor_kv
valor_kv_client dependency to your Cargo.toml:cargo add valor_kv_client
use valor_kv_client::KvStoreClient;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = KvStoreClient::new("127.0.0.1:6380".to_string()); // Replace with your server address
client.set("mykey".to_string(), "myvalue".to_string())?;
let value = client.get("mykey".to_string())?;
println!("Value for mykey: {:?}", value.unwrap());
Ok(())
}
ValorKV can be configured using a config.toml file and environment variables.
config.tomldata_file_path = "data.bin" # Path to the data file
bind_address = "0.0.0.0:6380" # Address to bind to
See the client/examples directory for example code.
We welcome contributions! If you find any issues or have ideas for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it as needed.