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)
}