Crates.io | keyz |
lib.rs | keyz |
version | 1.0.4 |
source | src |
created_at | 2023-01-27 17:38:25.02267 |
updated_at | 2023-02-06 13:07:18.979678 |
description | keyz client for Rust |
homepage | |
repository | https://github.com/viktor111/keyz |
max_upload_size | |
id | 769816 |
size | 27,756 |
Simple async key value store with rust and tokio
7667
cargo install keyz
keyz
docker pull zvado1/keyz
sudo docker run --network host -d keyz
SET [key] [value]
SET [key] [value] EX [seconds]
GET [key]
EXIN [key]
DEL [key]
CLOSE
SET text some text blah
text
key with value some text blah
SET user:1 { "username": "testUsername", "password": "hashedandsecrurepass" }
user:1
wit value { "username": "testUsername", "password": "hashedandsecrurepass" }
user:1
because there might many users in your appSET user:1 { "username": "testUsername", "password": "hashedandsecrurepass" } EX 60
EX 60
at the end so the user:1 key will expire in 60 secondsGET user:1
user:1
keynull
EXIN user:1
DEL user:1
user:1
user:1
Features besides the base SET GET DEL