diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-08 19:53:12 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-08 19:53:12 +0100 |
| commit | 6edf0fd93abf7e58b4c0974e3d3e54bcf8517946 (patch) | |
| tree | 32577db9d987897d4037ba9af0084b95b55e145c /cache/src/backends/mod.rs | |
| parent | e4584a8135584e6591bac7d5397cf227cf3cff92 (diff) | |
| download | jellything-6edf0fd93abf7e58b4c0974e3d3e54bcf8517946.tar jellything-6edf0fd93abf7e58b4c0974e3d3e54bcf8517946.tar.bz2 jellything-6edf0fd93abf7e58b4c0974e3d3e54bcf8517946.tar.zst | |
human-readable cache keys
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>>>; } |