[−][src]Attribute Macro utools::local_cache
#[local_cache]
Create a local cache
Syntax: #[local_cache(expire= "60", desc = "update once of every 60 second")]
#[local_cache(expire = 60, desc = "缓存更新周期60s")] fn test2() { println!("test2"); }
Attributes are the same as in local_cache