Skip to content

Commit

Permalink
bug fix: redis ttl always set to None
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarrara committed Oct 9, 2024
1 parent 713d960 commit e8b9734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/yapcache/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.4"
__version__ = "0.1.5"
2 changes: 1 addition & 1 deletion src/yapcache/caches/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def get(self, key: str) -> CacheItem | NotFound:
if ttl == -2:
return NOT_FOUND

if ttl == -1 or ttl:
if ttl == -1:
ttl = None

value = self.serializer.loads(value)
Expand Down

0 comments on commit e8b9734

Please sign in to comment.