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

Change API surface to return a KacheResult<S, E> result class instead of relaying on try-catch #268

Open
pablichjenkov opened this issue Sep 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pablichjenkov
Copy link

Is your feature request related to a problem? Please describe.
Consumer App code gets a bit hard to read with so much try/cath. This is a readability preference.

Describe the solution you'd like
Return a KacheResult<T, E> that will have the cached value when successful and a specific family of errors when not. Errors could be, from IO errors like CacheCorrupted, or time errors like CacheExpied, or capacity errors like EntryRemovedDueToCapacityLimit

@pablichjenkov pablichjenkov added the enhancement New feature or request label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant