rustium 0.1.4

A Rust application framework that values concurrency, performance, and scalability
Documentation
1
2
3
4
5
6
7
8
9
10
use axum::async_trait;
use redis::{SetExpiry, Value};

use crate::prelude::*;

#[async_trait]
pub trait IKvDal {
    async fn get(&mut self, key: &str) -> RustiumResult<Value>;
    async fn set(&mut self, key: &str, val: u64, exp: SetExpiry) -> RustiumResult<Value>;
}