https://github.com/xpepermint/gitmap
Persistent key-value store backed by GIT.
https://github.com/xpepermint/gitmap
cargo crate git hashmap key-value map rust store
Last synced: about 2 months ago
JSON representation
Persistent key-value store backed by GIT.
- Host: GitHub
- URL: https://github.com/xpepermint/gitmap
- Owner: xpepermint
- License: mit
- Created: 2020-04-18T23:23:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-19T15:17:24.000Z (about 6 years ago)
- Last Synced: 2025-10-22T09:37:34.309Z (8 months ago)
- Topics: cargo, crate, git, hashmap, key-value, map, rust, store
- Language: Rust
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
> Persistent key-value store backed by GIT.
This package provides a key-value store that uses GIT for the permanent storage.
## Example
```rs
use gitmap::Repo;
let path = Path::new("/storage/path");
let map = Repo::init(path);
map.insert_key("key1", "value1".to_bytes());
map.insert_key("key2", "value2".to_bytes());
map.commit("First commit");
```
## To-do
* Add `rollback()`