Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cache skipping for Load() calls that throw SkipCacheError #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

goncalvesnelson
Copy link

@goncalvesnelson goncalvesnelson commented May 20, 2024

Currently, when using a dataloader with a cache, errors returned by theBatchFunc are stored in the cache.
A user should be able to decide on caching errors depending on the error type (e.g. temporary errors when using caches with long ttl).
To support this use case, this PR adds a new error type SkipCacheError along with the NewSkipCacheError constructor function to allow users to wrap errors they don't want to be cached.

@goncalvesnelson goncalvesnelson force-pushed the feature/expose-panic-error-wrapper branch from 6bbc8d5 to bf5efb6 Compare May 27, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant