Simple async key value store with rust and tokio
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