diff --git a/src/cache/tiny.rs b/src/cache/tiny.rs index 3f7ae41..678bc4d 100644 --- a/src/cache/tiny.rs +++ b/src/cache/tiny.rs @@ -53,7 +53,11 @@ impl HttpCacheStorage for TinyUfoCache { self.cache.put(key, data, weight); Ok(()) } - // TODO remove + // remove object from storage + async fn remove(&self, key: &str) -> Result> { + let result = self.cache.remove(&key.to_string()); + Ok(result) + } } #[cfg(test)]