get_cache_prefix_or

Function get_cache_prefix_or 

Source
pub fn get_cache_prefix_or(default: String) -> String
Expand description

获取缓存 key 前缀,如果未设置则返回默认值

§参数

  • default: 如果未设置前缀时返回的默认值

§示例

use fbc_starter::cache::get_cache_prefix_or;

let prefix = get_cache_prefix_or("prod".to_string());