Skip to content

Commit

Permalink
Merge pull request #82 from jjcomer/add-redis-tls
Browse files Browse the repository at this point in the history
Convert expiration type and Remove Apple Targets
  • Loading branch information
jjcomer authored Feb 22, 2024
2 parents 7350c39 + 078269b commit 42e951a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# - i686-pc-windows-gnu
- i686-pc-windows-msvc
- i686-unknown-linux-gnu
- x86_64-apple-darwin
# - x86_64-apple-darwin
# Windows gnu is not currently working
# - x86_64-pc-windows-gnu
- x86_64-pc-windows-msvc
Expand All @@ -47,9 +47,9 @@ jobs:
- target: i686-unknown-linux-gnu
os: ubuntu-latest
testable: true
- target: x86_64-apple-darwin
os: macos-latest
testable: true
# - target: x86_64-apple-darwin
# os: macos-latest
# testable: true
# - target: x86_64-pc-windows-gnu
# os: windows-latest
# testable: true
Expand Down
4 changes: 2 additions & 2 deletions src/storage/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl Cache for RedisCache {
let mut connection = self.client.get_connection()?;
let serialized_data: Vec<u8> = match connection.get(&key) {
Ok(data) => {
connection.expire(&key, self.ttl)?;
connection.expire(&key, self.ttl.try_into()?)?;
data
}
Err(_e) => return Ok(None),
Expand Down Expand Up @@ -67,7 +67,7 @@ impl Cache for RedisCache {
let mut connection = self.client.get_connection()?;
let serialized_data: Vec<u8> = match connection.get(&key) {
Ok(data) => {
connection.expire(&key, self.ttl)?;
connection.expire(&key, self.ttl.try_into()?)?;
data
}
Err(_e) => return Ok(None),
Expand Down

0 comments on commit 42e951a

Please sign in to comment.