Updated redis_cacher.rs
This commit is contained in:
parent
dc5fa842c0
commit
89542072c8
1 changed files with 1 additions and 1 deletions
2
src/cache/redis_cacher.rs
vendored
2
src/cache/redis_cacher.rs
vendored
|
@ -59,7 +59,7 @@ impl RedisCache {
|
||||||
///
|
///
|
||||||
/// * `url` - It takes an url as string.
|
/// * `url` - It takes an url as string.
|
||||||
fn hash_url(&self, url: &str) -> String {
|
fn hash_url(&self, url: &str) -> String {
|
||||||
format!("{:?}", compute(url))
|
digest(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A function which fetches the cached json results as json string from the redis server.
|
/// A function which fetches the cached json results as json string from the redis server.
|
||||||
|
|
Loading…
Add table
Reference in a new issue