Redis backed session store for async-session using fred.rs.
```rust use asyncfredsession::RedisSessionStore; use async_session::{Session, SessionStore}; use fred::{pool::RedisPool, prelude::*};
// pool creation let config = RedisConfig::fromurl("redis://127.0.0.1:6379").unwrap(); let rdspool = RedisPool::new(config, None, None, 6).unwrap(); rdspool.connect(); rdspool.waitforconnect().await.unwrap();
// store and session let store = RedisSessionStore::frompool(rdspool, Some("async-fred-session/".into())); let mut session = Session::new(); session.insert("key", "value").unwrap();
let cookievalue = store.storesession(session).await.unwrap().unwrap();
let session = store.loadsession(cookievalue).await.unwrap().unwrap();
assert_eq!(&session.get::