Skip to content

Commit

Permalink
log when a cahced response is found
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Oct 15, 2024
1 parent f8ee569 commit 1f5e906
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cashu/mint/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async def wrapper(request, payload):
logger.debug(f"KEY: {key}")
# Check if we have a value under this key
if await self.redis.exists(key):
logger.info("Returning a cached response...")
return json.loads(await self.redis.get(key))
result = await func(request, payload)
# Cache a successful result for `expire` seconds
Expand Down

0 comments on commit 1f5e906

Please sign in to comment.