zero4rs 2.0.0

zero4rs is a powerful, pragmatic, and extremely fast web framework for Rust
Documentation
use lazy_static::lazy_static;

use super::YourCache;

lazy_static! {
    pub static ref RS_CACHE_60S: YourCache::<String> = YourCache::build(60, 5 * 1024 * 1024);
}

pub fn put60s(cache_key: &str, value: &str) {
    RS_CACHE_60S.put(cache_key, value.to_string());
}

pub fn get60s(cache_key: &str) -> Option<String> {
    RS_CACHE_60S.get(cache_key)
}

pub fn exists60s(cache_key: &str) -> bool {
    RS_CACHE_60S.exists(cache_key)
}