python-redis-cache
python-redis-cache copied to clipboard
Simple redis cache for Python functions
This PR is based on top of #38 and addressed the following: Defined functions with some parameters holding default values, in which function calls without passing a value to these...
### Summary This PR introduces asynchronous support to the python-redis-cache library, allowing for non-blocking I/O operations and improved performance in environments requiring async operations. ### Motivation With increasing adoption of...
Hi: This may be simple, but I can't find in the docs or the code: How do I cache the results of an async function? I'm getting an error that...
These changes allow for the wrapped function to be an `async` function. It does this by checking if the function that is being wrapped is a coroutine function. If it...
sorry for my formatter messing up the pr :D
Code for replication: (Testing using a redis instance with 10mb memory limit) ``` from typing import Any, Callable, Dict, List import redis from os import environ from redis_cache import RedisCache...