aboutsummaryrefslogtreecommitdiff
path: root/cache/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cache/src/lib.rs')
-rw-r--r--cache/src/lib.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/cache/src/lib.rs b/cache/src/lib.rs
index be2b331..4d6bbcf 100644
--- a/cache/src/lib.rs
+++ b/cache/src/lib.rs
@@ -81,14 +81,10 @@ impl Cache {
Ok(out)
}
- pub fn cache_read(&self, key: &str) -> Result<Option<Vec<u8>>> {
+ pub fn read(&self, key: &str) -> Result<Option<Vec<u8>>> {
self.storage.read(key)
}
- pub fn cache_store(
- &self,
- key: String,
- generate: impl FnOnce() -> Result<Vec<u8>>,
- ) -> Result<String> {
+ pub fn store(&self, key: String, generate: impl FnOnce() -> Result<Vec<u8>>) -> Result<String> {
self.cache(&key, generate)?;
Ok(key)
}