Rename getter functions
This commit is contained in:
parent
2dbffcc6b7
commit
99936bcb1a
5 changed files with 11 additions and 11 deletions
2
src/cache/cacher.rs
vendored
2
src/cache/cacher.rs
vendored
|
@ -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)?)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue