Kache icon indicating copy to clipboard operation
Kache copied to clipboard

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

Open pablichjenkov opened this issue 1 year ago • 0 comments

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 avatar Sep 21 '24 20:09 pablichjenkov