Rename getter functions

This commit is contained in:
Trickshotblaster 2023-07-04 15:11:30 -07:00
parent 2dbffcc6b7
commit 99936bcb1a
5 changed files with 11 additions and 11 deletions

2
src/cache/cacher.rs vendored
View file

@ -41,7 +41,7 @@ impl RedisCache {
/// # Arguments
///
/// * `url` - It takes an url as a string.
pub fn get_cached_json(&mut self, url: &str) -> Result<String, Box<dyn std::error::Error>> {
pub fn cached_json(&mut self, url: &str) -> Result<String, Box<dyn std::error::Error>> {
let hashed_url_string = Self::hash_url(url);
Ok(self.connection.get(hashed_url_string)?)
}