Update redis requirement from 0.23.0 to 0.24.0 (#13)

* Update redis requirement from 0.23.0 to 0.24.0

Updates the requirements on [redis](https://github.com/redis-rs/redis-rs) to permit the latest version.
- [Release notes](https://github.com/redis-rs/redis-rs/releases)
- [Commits](https://github.com/redis-rs/redis-rs/compare/redis-0.23.0...redis-0.24.0)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix breaking change

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Defelo <elodef42@gmail.com>
This commit is contained in:
dependabot[bot] 2023-12-06 17:19:12 +00:00 committed by GitHub
parent 2274e69510
commit 2b10221683
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ serde_json = ["dep:serde_json"]
[dependencies]
async-trait = { version = "0.1.68", default-features = false }
postcard = { version = "1.0.4", default-features = false, features = ["use-std"] }
redis = { version = "0.23.0", default-features = false, features = ["tokio-comp"] }
redis = { version = "0.24.0", default-features = false, features = ["tokio-comp"] }
serde = { version = "1.0.158", default-features = false }
serde_json = { version = "1.0.96", default-features = false, optional = true, features = ["std"] }
sha2 = { version = "0.10.6", default-features = false }

View file

@ -59,7 +59,7 @@ where
pipe.set_ex(
format!("{}:cache:{}", self.namespace, key),
value,
ttl.as_secs() as usize,
ttl.as_secs(),
);
let now = SystemTime::now()
.duration_since(UNIX_EPOCH)