This crate is intended for people who want to store user sessions locally in Redis.
```rust use cryo_sessions::{Redis, Uuid, Session};
let uuid = Uuid::new(); let redis = Redis::fromenv(); // this method takes the redis url from the REDISURL environment variable redis.insertsession(Session::new(uuid.toowned()), Duration::fromsecs(2400)).await.isok(); redis.insertsession(Session::new(uuid.toowned()), Duration::fromsecs(3400)).await.isok(); let sessions = redis.getsessionsbyuuid(uuid.toowned()).await.unwrap(); sessions.iter().foreach(|val| println!("{}", val)); let session = redis.getsessionbyuuid(uuid.to_owned()).await.unwrap(); println!("{}", session); ```