limiteron 0.1.1

Unified flow control framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! 缓存模块集成测试
//!
//! 测试缓存模块的基本功能

use limiteron::cache::L2Cache;
use std::time::Duration;

/// 测试缓存模块导入
#[tokio::test]
async fn test_cache_module_import() {
    let capacity = 1000;
    let default_ttl = Duration::from_secs(60);

    #[allow(unused_variables)]
    let cache = L2Cache::new(capacity, default_ttl);
    // 验证缓存可以创建(测试通过)
}