get_cache_prefix

Function get_cache_prefix 

Source
pub fn get_cache_prefix() -> Option<&'static String>
Expand description

获取缓存 key 前缀

如果未设置,返回 None

§示例

use fbc_starter::cache::get_cache_prefix;

if let Some(prefix) = get_cache_prefix() {
    println!("当前前缀: {}", prefix);
}