dataloader
dataloader copied to clipboard
data cache + batch timeout
In this review, I added a few options:
- Data cache interface for the ability to wrap the batch function and its positive results in the cache. Now you can use non-memory cache, like redis or sql.
- Timeout for batch function. If user close context before batch func done, all data return with error and will be put in cache.
WithTimeouthelp to wrap original context with tracing, variables, but without timeout.
This is an important feature for the library, why has it been abandoned for over a year now?