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_CACHE2S: YourCache::<String> = YourCache::build(2, 5 * 1024 * 1024);
}

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

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

pub fn exists2s(cache_key: &str) -> bool {
    RS_CACHE2S.exists(cache_key)
}