diff --git a/utils/wasm-actor-utils/src/client/help.rs b/utils/wasm-actor-utils/src/client/help.rs index 51b17e0..acc4c2f 100644 --- a/utils/wasm-actor-utils/src/client/help.rs +++ b/utils/wasm-actor-utils/src/client/help.rs @@ -10,6 +10,11 @@ pub async fn set_mem_cache(key: &str, val: Vec) -> Result<()> { Ok(()) } +pub async fn set_mem_cache_with_time(key: &str, val: Vec, time: i32) -> Result<()> { + kvp::set(key, &val, time).await?; + Ok(()) +} + /// Return a cache value. pub async fn get_mem_cache(key: &str) -> Result> { let rs: Vec = kvp::get(key).await?.ok_or_err_else(|| "")?;