diff options
Diffstat (limited to 'cache/src/backends/mod.rs')
| -rw-r--r-- | cache/src/backends/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cache/src/backends/mod.rs b/cache/src/backends/mod.rs index 370c5ab..6b7dac3 100644 --- a/cache/src/backends/mod.rs +++ b/cache/src/backends/mod.rs @@ -5,10 +5,9 @@ */ pub mod filesystem; -use crate::CacheKey; use anyhow::Result; pub(crate) trait CacheStorage: Send + Sync + 'static { - fn store(&self, key: CacheKey, value: &[u8]) -> Result<()>; - fn read(&self, key: CacheKey) -> Result<Option<Vec<u8>>>; + fn store(&self, key: String, value: &[u8]) -> Result<()>; + fn read(&self, key: &str) -> Result<Option<Vec<u8>>>; } |