ruwebframe 0.1.9

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// use moka::sync::Cache;
// use std::time::Duration;
//
// fn main() {
//     let cache = Cache::builder()
//         .max_capacity(100)
//         .time_to_live(Duration::from_secs(60))
//         .build();
//
//     cache.insert("key", "value".to_string());
//
//     match cache.get(&"key") {
//         Some(v) => println!("命中: {}", v),
//         None => println!("未命中"),
//     }
// }